Re: Reacting to UIBarButtonItem

2009-10-07 Thread Anthony Smith
Yes, user interaction enabled is set in IB for the nav bar. On Oct 7, 2009, at 9:04 PM, Luke the Hiesterman wrote: Make sure that your navBar's userInteractionEnabled property is set to YES. Luke On Oct 7, 2009, at 5:58 PM, Anthony Smith wrote: Hm, both seem to be fine. - (void)viewDidLo

Re: Reacting to UIBarButtonItem

2009-10-07 Thread Luke the Hiesterman
Make sure that your navBar's userInteractionEnabled property is set to YES. Luke On Oct 7, 2009, at 5:58 PM, Anthony Smith wrote: Hm, both seem to be fine. - (void)viewDidLoad { [super viewDidLoad]; if (doneButton != nil) { NSLog(@"NOT NIL");

Re: Reacting to UIBarButtonItem

2009-10-07 Thread Luke the Hiesterman
I'd verify that doneButton != nil. If you created this in a nib, you might have forgotten to wire it up. Luke On Oct 7, 2009, at 5:40 PM, Anthony Smith wrote: Here's what I'm doing. - (void)displayShuffleView:(id)sender { // Whatever here } - (void)viewDidLoad { [super view

Re: Reacting to UIBarButtonItem

2009-10-07 Thread Anthony Smith
Here's what I'm doing. - (void)displayShuffleView:(id)sender { // Whatever here } - (void)viewDidLoad { [super viewDidLoad]; [doneButton setTarget:self]; [doneButton setAction:@selector(displayShuffleView:)]; } I'm not sure what's up. self is a UIViewCon

Re: Reacting to UIBarButtonItem

2009-10-07 Thread Luke the Hiesterman
Target and action is the way to go. There must be an error in doing so, probably a typo in setting the action selector. Remember that colons are part of selector names Luke On Oct 7, 2009, at 5:25 PM, Anthony Smith wrote: I have a settings pane similar to Weather's settings pane. I have

Reacting to UIBarButtonItem

2009-10-07 Thread Anthony Smith
I have a settings pane similar to Weather's settings pane. I have a Done button on the right hand side which needs to trigger a flip animation to get back to the main view. I'm having trouble getting the UIBarButtonItem to trigger. I've tried setting the target and action properties of UIBa