| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 平成 18/01/02, at 16:44, Shawn Erickson wrote:
At startup, I guess you right, its recursively calling [self menu] like so: (up to 87214 stack frames then blows up)
On Jan 2, 2006, at 4:39 PM, email@hidden wrote:
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.
What does the crash look like? Maybe you are getting into a recursive loop because titleOfSelectedItem internally calls [self menu].
Thanks much.
Andre
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >Why does this crash? (From: email@hidden) | |
| >Re: Why does this crash? (From: Shawn Erickson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.