• 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
NSFormatter not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFormatter not getting called


  • Subject: NSFormatter not getting called
  • From: Apple Cocoa List <email@hidden>
  • Date: Mon, 16 Feb 2009 18:21:02 -0600

I can't get this very simple NSFormatter to get called on an NSTextField.

Here is the formatter:

@implementation FileNameFormatter
- (BOOL)isPartialStringValid:(NSString *)partialString newEditingString:(NSString **)newString errorDescription:(NSString **)error
{
NSLog(@"Formatter called"); //NEVER GETS CALLED.
return YES;
}
@end


Here is my code assigning it to an NSTextField:
- (void)windowDidLoad
{
NSLog(@"windowDidLoad called"); //GETS CALLED OK.
FileNameFormatter *fileNameFormatter = [[[FileNameFormatter alloc] init] autorelease];
[nameField setFormatter:fileNameFormatter];
}


Is there anything I am missing?

Thanks,

Todd Freese
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSFormatter not getting called
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Convert Cocoa App to Core Data App
  • Next by Date: Re: NSFormatter not getting called
  • Previous by thread: Re: Convert Cocoa App to Core Data App
  • Next by thread: Re: NSFormatter not getting called
  • Index(es):
    • Date
    • Thread