Hello, All, I have a window with a number of NSTextFields in two columns. The natural flow of information would be to fill in one column then the other but the tab order goes left to right then down.
I've tried hooking up the nextKeyView in IB but that doesn't help. I've also used [window setAutorecalculatesKeyViewLoop:NO]; in windowDidLoad (and in IB it's un-ticked) which doesn't help either - mind you despite window being hooked up in IB window == NULL but the notifications below are being called and they don't work either. Now I'm trying a notification system For each NSTextField I use this in windowDidLoad: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector (controlTextDidEndEditing:) name:NSControlTextDidEndEditingNotification object:titleField]; Then: - (void)controlTextDidEndEditing:(NSNotification *)notification { NSTextField *f = [notification object]; if (f == titleField) { [titleField resignFirstResponder]; [window setInitialFirstResponder:forenameField]; } else if (f == forenameField) [forenameField resignFirstResponder]; [window setInitialFirstResponder:surnameField]; ... but this isn't working either. I'm sure there must be an easier way to do this, would anyone know what it is? Regards, Rob. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com