how to change NSButton color

2011-01-21 Thread Dianne
Hi List, I would like to know what you can suggest when changing the color of NSButton. I have read everywhere that I need to subclass NSButtonCell and NSButton as well, is this the only way to do it for Mac? I'm surprised that this is how complicated it is in Mac. Why NSButton doesn't have any

Re: how to change NSButton color

2011-01-23 Thread Dianne
To: Dianne Cc: "Cocoa-dev@lists.apple.com" Sent: Sat, January 22, 2011 2:38:07 PM Subject: Re: how to change NSButton color On Jan 20, 2011, at 11:49 PM, Dianne wrote: > Hi List, > > I would like to know what you can suggest when changing the color of NSButton. > I have

Re: Setting a delegate on a UITextField

2011-03-03 Thread Dianne
there is, you need to use a formatter for that, you can even set the allowed characters to be inputted to the textfield. check NSFormatter if it is of any help, you can also extend the class to adjust to your needs. From: Jon Sigman To: Cocoa Developers Sent

Re: Apple Quit event custom handler not working : Beginner

2011-03-11 Thread Dianne
Can you try to add this one in your app delegate, - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender { returnTRUE; } Thanks, sandianne From: deovrat singh To: cocoa-dev@lists.apple.com Sent: Fri, March 11, 2011 4:07:57 PM Subject: