Re: Calling IB Actions In PB
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.