Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
- Subject: Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
- From: "Brad Peterson" <email@hidden>
- Date: Mon, 04 Aug 2003 00:00:10 +0000
Hi all,
I'm trying to pre-populate some NSTextFields with information from the prefs
file. However, I always seem to get a SIGBUS or SIGSEGV in the underlying
library code when I try to do this...
Originally, I got an exception b/c the pref wasn't set (nil string), which I
understand and fixed by adding the exception handler. Then, even if there
are values in the prefs file, on the next running, I started getting the
other errors as described above.
This is the extent of what I'm doing... (the getPrefsString does return a
valid non-empty, non-nil string, btw.)
- (void)awakeFromNib{
NS_DURING
[txtName setStringValue:[self getPrefsString:LIC_NAME]];
NS_HANDLER
NS_ENDHANDLER
}
Is this not allowed in awakeFromNib? Should I be doing this somewhere else?
Thanks,
Brad
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.