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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to