• 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
Re: NSTableView Cell edit values.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView Cell edit values.


  • Subject: Re: NSTableView Cell edit values.
  • From: Totte Alm <email@hidden>
  • Date: Wed, 25 Feb 2009 22:53:02 +0100


25 feb 2009 kl. 22.29 skrev Corbin Dunn:


On Feb 25, 2009, at 12:14 PM, Totte Alm wrote:

Hello,

25 feb 2009 kl. 19.58 skrev Corbin Dunn:

Make the field editor resign first responder status; if it did successfully do that, then the change was committed. If not, a validation error happened. IE:

[self.window makeFirstResponder:tableView];


I might be doing this part wrong

This is the Action method involved

// ------------------------------------------
// doFlaggning
// ------------------------------------------
- (IBAction) doFlaggning:(id)sender
{

// Fix focus
[mWindow makeFirstResponder:mNameList];

[NSTimer scheduledTimerWithTimeInterval:kTestTime target:self selector:@selector(realDoFlagging:) userInfo:nil repeats:NO];
}


The result is this from my logs.

2009-02-25 20:14:25.266 ABolag-III[52341:813] realDoFlagging
2009-02-25 20:14:25.433 ABolag-III[52341:813] setObjectValue called

I'd suggest debugging in Xcode and figuring out what the bt is when your setObjectValue is called, and what is making that happen. It should be the resigning of the first responder for the field editor.

I found it, and it did work, when I use the correct NSWindow object * blush! *.
Thanks again!



// Totte


corbin

------------------------------------------------------------------------------- "Black holes are where God divided by zero." - Steven Wright

_______________________________________________

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


References: 
 >NSTableView Cell edit values. (From: Totte Alm <email@hidden>)
 >Re: NSTableView Cell edit values. (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView Cell edit values. (From: Totte Alm <email@hidden>)
 >Re: NSTableView Cell edit values. (From: Corbin Dunn <email@hidden>)

  • Prev by Date: IKFilterUIView binding?
  • Next by Date: makeKeyAndOrderFront Crashing
  • Previous by thread: Re: NSTableView Cell edit values.
  • Next by thread: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
  • Index(es):
    • Date
    • Thread