NSTextField action semantics? NSFormatter semantics?
NSTextField action semantics? NSFormatter semantics?
- Subject: NSTextField action semantics? NSFormatter semantics?
- From: Charlton Wilbur <email@hidden>
- Date: Tue, 30 Nov 2004 21:56:57 -0500
All,
I've narrowed down my problem somewhat.
I have an NSTextField with a custom NSFormatter subclass as its
formatter outlet. If I edit the value in the NSTextField and hit
enter, the NSTextField's action is carried out and the object value is
correctly captured. If I edit the value in the NSTextField and hit
tab, the value is correctly captured -- but then the NSTextField is
immediately cleared. The custom formatter works correctly with a table
view, so I don't think it's that.
Further, there's a memory leak somewhere in the program that was not
previously there. My suspicion is that it's something in the
getObjectValue:forString:errorDescription: method:
-(BOOL) getObjectValue:(id *)anObject forString:(NSString *)string
errorDescription:(NSString **)error
The object I return as *id has been autoreleased; is this appropriate?
I haven't found anything to clearly indicate one way or the other,
which may be my fault as much as the documentation's.
Thanks for any assistance, as always.
Charlton
--
Charlton Wilbur
email@hidden
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden