• 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
Mail Thread Index

Mail Thread Index

  • Date Index
[Prev Page][Next Page]
  • Re: core data newbie Q, (continued)
    • Re: core data newbie Q, Andrew Kimpton
      • Re: core data newbie Q, Daniel Child
        • Re: core data newbie Q, Marcus S. Zarra
  • Java menu disappear, when NSOpenPanel is opened, Anton Spivak
  • Bindings : how to do the relation between a tab(View) index, and the rest of MVC., Francis Derive
  • OT: WWDC eTicket, Daniel Mischler
  • Value With Pattern binding not working as expected, Sam Stigler
    • Re: Value With Pattern binding not working as expected, George Orthwein
      • Re: Value With Pattern binding not working as expected, Sam Stigler
  • Recursion taking up far too much memory... any ideas?, Sam Stigler
    • Re: Recursion taking up far too much memory... any ideas?, John Stiles
      • Re: Recursion taking up far too much memory... any ideas?, Daniel Dalquen
    • Re: Recursion taking up far too much memory... any ideas?, Ryan Homer
  • How is a bound NSArrayController so stealthy?, Jerry Krinock
    • Re: How is a bound NSArrayController so stealthy?, Keary Suska
    • Re: How is a bound NSArrayController so stealthy?, Shamyl Zakariya
      • Re: How is a bound NSArrayController so stealthy?, Jerry Krinock
        • Re: How is a bound NSArrayController so stealthy?, Shamyl Zakariya
  • How to use bindings on a specific array element, Arthur C.
    • Re: How to use bindings on a specific array element, Francis Derive
      • Re: How to use bindings on a specific array element, Francis Derive
      • Re: How to use bindings on a specific array element, George Orthwein
        • Re: How to use bindings on a specific array element, Francis Derive
    • Re: How to use bindings on a specific array element, George Orthwein
  • Cocoaheads Lake Forest (92630) meeting tonight, Tuesday 6/5, Scott Ellsworth
  • NSDocument and a 'persistent profiles palette', Hans Kuder
    • Re: NSDocument and a 'persistent profiles palette', Fritz Anderson
  • Trouble Localizing Help, Iain Delaney
  • NSForegroundColorAttributeName + NSStrokeWidthAttributeName, Lorenzo
    • Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName, Douglas Davidson
      • Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName, Lorenzo
  • First responder crashes in drawRect after processing keyDown, Tron Thomas
    • Re: First responder crashes in drawRect after processing keyDown, Joshua Pennington
    • Re: First responder crashes in drawRect after processing keyDown, Ricky Sharp
  • Best way to play a MP3?, Matt
    • Re: Best way to play a MP3?, Robert Martin
    • Re: Best way to play a MP3?, R. Matthew Emerson
    • <Possible follow-ups>
    • Re: Best way to play a MP3?, Stephen F. Booth
    • Re: Best way to play a MP3?, Gregory Weston
  • NSNotification, Devraj Mukherjee
    • Re: NSNotification, Jerry Krinock
      • Re: NSNotification, Finlay Dobbie
      • Re: NSNotification, Chris Hanson
  • NSButtonCell in NSTableView., Sachin Kumar Tulla
    • Re: NSButtonCell in NSTableView., Jerry Krinock
      • Re: NSButtonCell in NSTableView., I. Savant
  • NSScrollView intial state, Rodrigue Cloutier
  • NSTableView 's Action Invocation Bindings, Francis Derive
    • Re: NSTableView 's Action Invocation Bindings, Keary Suska
      • Re: NSTableView 's Action Invocation Bindings, Francis Derive
  • Problem with Bluetooth API, tiennou
    • Re: Problem with Bluetooth API, Jim Brownfield
  • nodesForXPath does not seem to work in Address Book Plug-Ins, Gernot Poetsch
    • Re: nodesForXPath does not seem to work in Address Book Plug-Ins, Tomas Franzén
      • Re: nodesForXPath does not seem to work in Address Book Plug-Ins, Gernot Poetsch
        • Re: nodesForXPath does not seem to work in Address Book Plug-Ins, Lars von Wedel
        • Re: nodesForXPath does not seem to work in Address Book Plug-Ins, Sam Stigler
  • NSTextFieldCell and -stopTracking::, Eric Jutras
    • Getting Mouse Up in NSTextFieldCell (was NSTextFieldCell and stopTracking), Eric Jutras
  • NSTable - intercept item name before user editing, Ari Benzane
    • Re: NSTable - intercept item name before user editing, Keary Suska
  • codeSense, Tony Cate
    • Re: codeSense, Douglas Davidson
      • Re: codeSense, Adam R. Maxwell
      • Re: codeSense, Tony Cate
    • Re: codeSense, Ofri Wolfus
  • Add two color for records of NSTableView., Sachin Kumar Tulla
  • Dictionaries within a dictionary - getAllValuesForKey:, Jofell Gallardo
    • Re: Dictionaries within a dictionary - getAllValuesForKey:, Daniel T. Staal
    • Re: Dictionaries within a dictionary - getAllValuesForKey:, Charles Steinman
  • Key number to Unicode string, gebiet
    • Re: Key number to Unicode string, Daniel Jalkut
    • <Possible follow-ups>
    • Re: Key number to Unicode string, Dorian Johnson
  • How to stop a Modal dialog properly and programmatically?, Stephane
    • Re: How to stop a Modal dialog properly and programmatically?, Jerry Krinock
  • NSArrayController display newly inserted objects twice Hi guys ! I'm facing a strange problem with an instance of NSArrayController. In my project, I have an entity with an attribute named "name". This attribute have to be unique, so I have a validation process that ensure the uniqueness : - (BOOL)validateName: (id *)valueRef error:(NSError **)outError { // "name" must be unique NSArray * results = nil; NSPredicate * predicate = nil; NSFetchRequest * fetchRequest = nil; predicate = [NSPredicate predicateWithFormat:@"(SELF != %@) AND (name LIKE %@)", self, *valueRef]; fetchRequest = [[[NSFetchRequest alloc] init] autorelease]; [fetchRequest setEntity:[self entity]]; [fetchRequest setPredicate:predicate]; results = [[self managedObjectContext] executeFetchRequest:fetchRequest error:nil]; if ( [results count] > 0 ) { return NO; } return YES; } I've also added the following methods to ensure that any newly inserted object has a unique name by defa! ult : ! - (void)awakeFromInsert { [self setUniqueName]; } - (void)setUniqueName { NSString * defaultName = NSLocalizedStringFromTableInBundle(@"NewCategory", @"Localizable", [NSBundle mainBundle], nil); NSString * uniqueName = defaultName; int index = 0; NSError * error = nil; while ( ![self validateValue:&uniqueName forKey:@"name" error:&error] ) { index++; uniqueName = [defaultName stringByAppendingFormat:@" (%d)", index]; break; } [self setName: uniqueName]; } This works perfectly in most cases...but the most important one : insertion using an NSArrayController. In this case, my managed object is inserted perfectly in the database, with a unique name, but the array controller inserts it twice in its content array ! It seems like the problem is due to this line in my validation method : results = [[self managedObjectContext] executeFetchRequest:fetchRequest error:nil]; If I comment this line, everything works perfectly (but, obviously, the name is not unique). To ill! ustrat! e the problem, I've created a small project that can be do, Eric MORAND
  • NSArrayController display newly inserted objects twice, Eric MORAND
  • Re: [ANN] MacFUSE talk at Google, Dave MacLachlan
  • Access to nibs topLevelObjects without outlets and without instantiateNibWithOwner:topLevelObjects:, Gustavo Vera
  • Sorting filenames the way the Finder does?, James Bucanek
    • Re: Sorting filenames the way the Finder does?, Jim Correia
      • Re: Sorting filenames the way the Finder does?, Jim Correia
        • Re: Sorting filenames the way the Finder does?, Scott Anguish
          • Re: Sorting filenames the way the Finder does?, James Bucanek
            • Re: Sorting filenames the way the Finder does?, Scott Anguish
              • Re: Sorting filenames the way the Finder does?, James Bucanek
              • Re: Sorting filenames the way the Finder does?, Jim Correia
              • Re: Sorting filenames the way the Finder does?, James Bucanek
              • Re: Sorting filenames the way the Finder does?, Aki Inoue
              • Re: Sorting filenames the way the Finder does?, Deborah Goldsmith
        • Re: Sorting filenames the way the Finder does?, James Bucanek
        • Sorting NSTableView columns with digits as numbers [Was: Re: Sorting filenames the way the Finder does?], António Nunes
  • Array controller content vs. contentArray binding, Dave Hayden
    • Re: Array controller content vs. contentArray binding, mmalc Crawford
  • RE: Key number to Unicode string (email@hidden), Dorian Johnson
  • Displaying and Editing item Metadata in an NSTextField, Jordan Chark
    • Re: Displaying and Editing item Metadata in an NSTextField, Half Activist
  • Vertically Expanding TextField, Randall Wood
  • Get and loss focus on a NSTextField, mabo68
  • [ANN] PreFab Event Taps Testbench 1.0, Bill Cheeseman