• 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: Programmatically displaying UISplitViewController popover?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically displaying UISplitViewController popover?


  • Subject: Re: Programmatically displaying UISplitViewController popover?
  • From: Rick Mann <email@hidden>
  • Date: Fri, 03 Jun 2011 17:03:22 -0700

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@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: 
 >Programmatically displaying UISplitViewController popover? (From: Rick Mann <email@hidden>)
 >Re: Programmatically displaying UISplitViewController popover? (From: Roland King <email@hidden>)
 >Re: Programmatically displaying UISplitViewController popover? (From: Rick Mann <email@hidden>)
 >Re: Programmatically displaying UISplitViewController popover? (From: Evadne Wu <email@hidden>)

  • Prev by Date: Multi-OS API Question
  • Next by Date: Why is my app generating warnings about "Deregistering for sleep notifications"?
  • Previous by thread: Re: Programmatically displaying UISplitViewController popover?
  • Next by thread: Handling NSRunLoop with AUGraph
  • Index(es):
    • Date
    • Thread