NSPanel Information
NSPanel Information
- Subject: NSPanel Information
- From: haym37 <email@hidden>
- Date: Sat, 11 Feb 2006 21:29:41 -0500
I have an NSPanel and am merely attempting to access its title. I
have the below code:
- (void)awakeFromNib
{
NSLog(@"title: %@", [inspectorPanel title]);
}
- (void)changeState
{
NSLog(@"here");
NSLog(@"title: %@", [inspectorPanel title]);
}
If I access the changeState method from another class, it does work
(it outputs "here"), although it also outputs the title as (NULL).
However, if I display the title from the awakeFromNib method, it does
successfully output the title. Also, if I change the awakeFromNib
method to:
- (void)awakeFromNib
{
[self changeState];
}
the title is in fact successfully outputted. Why is it that when I
call the changeState method at any time other than when the
application loads (awakeFromNib), it only displays the title as (NULL)?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden