• 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
Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
      • From: Tom Sutcliffe <email@hidden>
  • Prev by Date: Dealing with Mac/Unix/Windows line breaks
  • Next by Date: Compiler Warnings
  • Previous by thread: Re: Dealing with Mac/Unix/Windows line breaks
  • Next by thread: Re: Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
  • Index(es):
    • Date
    • Thread