Problem with Preference Pane and Security Interface
Problem with Preference Pane and Security Interface
- Subject: Problem with Preference Pane and Security Interface
- From: Alain Delisle <email@hidden>
- Date: Tue, 2 Mar 2004 13:54:54 -0500
Hi all,
I want to use the Security Interface inside a Preference Pane and here
the problem start. If i use the code i saw on the mailing list like the
folowing everything work right.
- (void)awakeFromNib {
[myAuthView setString:"com.someprogram.do.something"];
[myAuthView setDelegate:self];
[myAuthView updateStatus:self];
}
- (void)authorizationViewDidDeauthorize:(SFAuthorizationView *)view {
//do something
}
- (void)authorizationViewDidAuthorize:(SFAuthorizationView *)view {
// do something
}
But when i modify the code to be use inside the preference code it work
strangely. The string of the Security interface appear but not the Lock
icon. And it's impossible to click on the string like the normal
behavior on the app.
- (void)mainViewDidLoad {
[myAuthView setString:"com.someprogram.do.something"];
[myAuthView setDelegate:self];
[myAuthView updateStatus:self];
}
- (void)authorizationViewDidDeauthorize:(SFAuthorizationView *)view {
//do something
}
- (void)authorizationViewDidAuthorize:(SFAuthorizationView *)view {
// do something
}
Is anyone can help me ...
Alain
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.