• 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
Why does this crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does this crash?


  • Subject: Why does this crash?
  • From: email@hidden
  • Date: Mon, 2 Jan 2006 16:39:31 -0800

In a simple subclass of NSPopUpButtonCell, this is the only subclassed method, set to the custom cell in a NSTableColumn.
The table column is using bindings BTW...


I'm wondering why this would crash? I need to get the title of the selected item because of a "possible" bug in NSPopUpButtonCell....

- (NSMenu *)menu
{
	 NSMenu *returnMenu = [super menu];

//I want to grab the cell's title currently selected, not whats selected by the menu during pop-up
NSLog(@"titleOfSelectedItem is %@",[self titleOfSelectedItem]); // Crash and burn

return returnMenu;
}


Calling [self title] does not crash BTW.

Any help is appreciated.

Thanks!
_______________________________________________
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


  • Follow-Ups:
    • Re: Why does this crash?
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: iCal parsing using Cocoa/Objc
  • Next by Date: Re: Why does this crash?
  • Previous by thread: iCal parsing using Cocoa/Objc
  • Next by thread: Re: Why does this crash?
  • Index(es):
    • Date
    • Thread