Textfields in sheet not getting focus
Textfields in sheet not getting focus
- Subject: Textfields in sheet not getting focus
- From: Jesus De Meyer <email@hidden>
- Date: Sat, 19 Feb 2005 12:34:54 +0100
Hi,
Let me sketch my problem.
I'm currently developing a background only application that uses an NSStatusItem. In that menu, you can show a window where you can add some stuff. To do that, there's a button in that window that triggers a sheet so you can type in stuff.
The problem is that the textfiels inside the sheet don't respond to anything. If I select a textfield and start typing the text goes to another application, usually to the Run Log in Xcode. It used to work fine.
I checked my connections in IB and they should be ok.
I use a singleton class to handle stuff for the window.
This is how I create the class
+ (id)sharedInstance {
static id sharedInstance;
if (sharedInstance == nil) {
sharedInstance = [[PreferencesController alloc] init];
[NSBundle loadNibNamed:@"PreferencesController" owner:sharedInstance];
}
return sharedInstance;
}
Here's my method for showing the window
- (void)show {
[self update]; //update gui elements
[NSApp activateIgnoringOtherApps:YES];
[prefsWindow center];
[prefsWindow makeKeyAndOrderFront:self];
}
And finally, this is how I show the sheet
[NSApp beginSheet:newFeedSheet modalForWindow:prefsWindow modalDelegate:nil didEndSelector:nil contextInfo:Nil];
Hopefully someone can help me out 'cause this is really frustrating.
Thanks in advance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden