• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField action semantics? NSFormatter semantics?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: cross development on Jaguar
  • Next by Date: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Previous by thread: Launch Services
  • Next by thread: Strangeness when moving data through an array.
  • Index(es):
    • Date
    • Thread