On Jun 3, 2011, at 11:54 , Evadne Wu wrote:
> So you have the bar button item and tapping it works; I believe tapping it
> just invokes its action on its target and there is no much wizardry in thaqt.
> Is the item we’re talking about the same item that the split view controller
> sends to you in
> -splitViewController:willHideViewController:withBarButtonItem:forPopoverController:
> ? If that is the case, does something along the line of [[item target]
> performSelector:@selector(action) withObject:item] work?
Doing that works, it just strikes me as a hack. But I guess it's what I'll have
to go with. Thanks!
The exact line I wrote is:
[self.popoverButtonItem.target performSelector:
self.popoverButtonItem.action withObject: self.popoverButtonItem];
--
Rick
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]