• 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: Calling IB Actions In PB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling IB Actions In PB


  • Subject: Re: Calling IB Actions In PB
  • From: j o a r <email@hidden>
  • Date: Sun, 14 Apr 2002 15:39:34 +0200

On Sunday, April 14, 2002, at 03:19 , Albert Atkinson wrote:

Anyone have any suggestions?

Yes! :)

1) validateToolbarItem is only called in the target of the toolbar item - and since you have set the drawer itself to be the target this method will never be called for this toolbar item.
The built in fallback to using validateToolbarItem is to check wether the target responds to the provided action method, which brings us to:

2) NSDrawer doesn't implement "toggleDrawer:". Change it to match the correct method:

- (void)toggle:(id)sender

ie.: [toolbarItem setAction: @selector(toggle:)]

...and then the toolbar item, as if by magic, will be enabled!


j o a r
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Calling IB Actions In PB (From: Albert Atkinson <email@hidden>)

  • Prev by Date: Re: Calling IB Actions In PB
  • Next by Date: Using Cocoa Programmatically
  • Previous by thread: Re: Calling IB Actions In PB
  • Next by thread: Re: Calling IB Actions In PB
  • Index(es):
    • Date
    • Thread