• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPanel Information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Is it a Universal Binary?
  • Next by Date: Re: NSString and char *
  • Previous by thread: Re: highlightling custom table header cell on mouse clicks
  • Next by thread: making iPod-compatible movies from NSImage arrays
  • Index(es):
    • Date
    • Thread