Re: Odd stuff with Cocoa-Java
Re: Odd stuff with Cocoa-Java
- Subject: Re: Odd stuff with Cocoa-Java
- From: email@hidden
- Date: Sun, 30 Sep 2001 21:31:56 -0400
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