Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Eric E. Dolecki
It's objectAtIndex not objectForIndex ;) Sorry - it's working now. On Thu, Feb 11, 2010 at 9:21 AM, Eric E. Dolecki wrote: > Ok - I hooked it up to the appdelegate... from another class I am doing > this (which bombs): > > MyAppDelegate *ad = (MyAppDelegate *)[[UIApplication sharedApplication] >

Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Eric E. Dolecki
Ok - I hooked it up to the appdelegate... from another class I am doing this (which bombs): MyAppDelegate *ad = (MyAppDelegate *)[[UIApplication sharedApplication] delegate]; UITabBar *tb = ad.tabBar;//works fine UITabBarItem *tbi = [tb.items objectForIndex:1];*//bombs...* So still trying to ac

Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Eric E. Dolecki
The class is UIApplication in IB. So it seems I can't do that? On Thu, Feb 11, 2010 at 9:01 AM, Roland King wrote: > add UIBarButtonItem outlets to whatever class Files Owner is > > eg > >@property( readwrite, retain ) IBOutlet UIBarButtonItem > *item1; > > then you will be able to hook

Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Roland King
add UIBarButtonItem outlets to whatever class Files Owner is eg @property( readwrite, retain ) IBOutlet UIBarButtonItem *item1; then you will be able to hook them up in IB. On 11-Feb-2010, at 9:57 PM, Eric E. Dolecki wrote: > Awesome - thank you! > > Now I am looking at how

Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Eric E. Dolecki
Awesome - thank you! Now I am looking at how to access a certain UIBarButtonItem so I can set it's badge. In my app delegate I have a UITabBarController. In IB I can't seem to create an IBOutlet and wire the button I want up so I can set it's badge string. When I attempt to wire it up from File'

Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Mark Woollard
See UITabBarItem's badgeValue property. Regards Mark On 11 Feb 2010, at 13:40, Eric E. Dolecki wrote: > I know about placing a badge on the homescreen application icon, but is > there a way to set this up for a button in a toolbar... or do I just use my > own UIView to do the same thing and floa

iPhone: badge icon for a button in toolbar

2010-02-11 Thread Eric E. Dolecki
I know about placing a badge on the homescreen application icon, but is there a way to set this up for a button in a toolbar... or do I just use my own UIView to do the same thing and float it over the toolbar? Eric ___ Cocoa-dev mailing list (Cocoa-dev