| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I haven't tried - but you should be okay with subclassing the NSWindowController and the NSView classes. I think that is normal. However - subclassing the NSTextField or whatever it is you were doing is not necessary. You should use an NSFormatter instead. You should be able to just drag one onto your Nib file through IB that will probably give you just numbers. You should maybe look at the vermont recipes stuff on Stepwise. The NSFormatter example (I think in recipe 4) is very useful in figuring it all out. It's in ObjC - but it's really easy to figure out and you could convert it to Java no problem...
Good Luck,
Tyler
On Sunday, September 30, 2001, at 06:32 PM, Brian Hook wrote:
At 11:59 PM 9/30/01 +0200, Andreas Monitzer wrote:_______________________________________________You don't have to, take a look at formatters. Subclassing is very seldom in Cocoa.
Subclassing in general, or subclassing text views? Because if you're saying the former, then I'm doing something REALLY wrong because I'm subclassing the hell out of NSWindowController and NSView right now.
Brian
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
| References: | |
| >Re: Odd stuff with Cocoa-Java (From: email@hidden) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.