• 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
Re: [[sender selectedCell] tag] crashes in 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[sender selectedCell] tag] crashes in 10.6


  • Subject: Re: [[sender selectedCell] tag] crashes in 10.6
  • From: Graham Cox <email@hidden>
  • Date: Sun, 3 Jan 2010 09:55:18 +1100

On 03/01/2010, at 9:40 AM, Henrietta Read wrote:

> Think I must be doing something wrong, I just got a new laptop with 10.6 for
> Christmas. My app that works fine in 10.5 seems to have all its pop-up menus
> broken... ???
>
> Here's the code:
>
> - (IBAction)myPopupButton:(id)sender
> {
>    gMyPopupButtonSetting = [[sender selectedCell] tag];
> }
>
>
> 'gMyPopMenuSetting' is an Int.
>
> When I step through the debugger, '[[sender selectedCell] tag]' crashes. Any
> ideas why?


No, it should be OK, though I suspect not what you really want.

For a pop-up button, the method that returns the chosen item is -selectedItem, not -selectedCell.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[[sender selectedCell] tag] crashes in 10.6 (From: Henrietta Read <email@hidden>)

  • Prev by Date: Re: Make NSWindow immovable by dragging bottom bar
  • Next by Date: Bindings/Core Data: Undesired Discovery of a Mythical "Deep Observer"
  • Previous by thread: [[sender selectedCell] tag] crashes in 10.6
  • Next by thread: Bindings/Core Data: Undesired Discovery of a Mythical "Deep Observer"
  • Index(es):
    • Date
    • Thread