As always fast. Thanks a lot Eskimo. Will try this out.
Post
Replies
Boosts
Views
Activity
Hi eskimo,
I tried this out very quick, but code is giving panic
NSString * onexuser
NSString * onexpass (Just for reference to check correct data type)
NSData * nssid = network.anyObject.ssidData; (here network is CWNetwork Object, so I can get ssidData and also verified that Hex O/P is correct)
NSLog(@"NSSData: %@", nssid);
CWKeychainDomain d = 2;
OSStatus tp = [CWKeychainSetWiFiEAPUsernameAndPassword:d ssid:nssid username:onexuser password:onexpass];
Thanks.
NSString * onexuser = [[NSString alloc] initWithUTF8String:cOnexuser];
NSString * onexpass = [[NSString alloc] initWithUTF8String:cOnexpass];
NSData * nssid = [@"Testing" dataUsingEncoding:NSUTF8StringEncoding];
NSLog(@"NSSData: %@", nssid);
CWKeychainDomain d = kCWKeychainDomainUser;
OSStatus err;
err = CWKeychainSetWiFiEAPUsernameAndPassword(d, nssid, onexuser, onexpass);
NSLog(@"Status: %d", err);
}```
Looks like I was wrong on above reply, go can not compile ARC as per this discussion, https://github.com/progrium/macdriver/discussions/194. So I am still not sure go compilation and memory management part. But here is good article on https://github.com/progrium/macdriver/blob/main/docs/memorymanagement.md though still it lacks some practical info though.
/Users/test/Desktop/Location.app/Contents/MacOS/osx-core-location Yes this is the main executable of Location app.