Re: Bad error?
Re: Bad error?
- Subject: Re: Bad error?
- From: Chris Gehlker <email@hidden>
- Date: Tue, 28 Aug 2001 22:03:20 -0700
On 8/28/01 9:16 PM, "Brent Gulanowski" <email@hidden> wrote:
>
Well, leave it to someone who really has no idea what he's doing (but is
>
starting to have fun just the same): here's a scary error that I do not know
>
the meaning of, nor even where in docs I would start looking (uh, ok,
>
probably in the gcc docs, but I'll just cheat).
>
>
GLStuffCocoa.app has exited due to signal 10 (SIGBUS).
IIRC, whenever I see this error it's because I've forgotten to retain
something I should have. Check your instance variables.
>
I'm trying to see if I can get an NSOpenGLView to display something. I
>
managed to get my little test app to compile, but I've clearly made a
>
mistake (or mistakes, probably). There are many things I don't fully grok
>
yet, but the biggest question mark in my head is how to deal with all of
>
these objects which are generated in a disk file and which are sort of
>
anonymous to me: NSApplication, NSOpenGLView, a custom controller and a
>
custom model. The outlet mechanism is odd: how does one object know that the
>
other is ever there? Does IB give it a symbol to put into the outlet?
Those IBOutlets are pointers. Loading the nib actually sets them to point to
the right thing, I.e. the thing you drew the line to.
>
Other questions:
>
>
Is NSApplication a Controller object? or what?
>
>
If I subclass NSApplication, do I have to change the "File's Owner" object
>
in IB to reflect this? Can NSApplication communicate to other objects
>
besides its delegate (not counting instance objects I might choose to
>
create)? Specifically, can it see View objects, ie the Key Window or the
>
Main Window etc, or Controller objects I create in IB?
>
Don't subclass NSAppliction. Make your own controller class by subclassing
NSObject. Instantiate it in IB and connect it up. Then it can talk to other
objects through it IBOutlet members. They can talk to it through it's
IBAction methods.
--
Cogito Ergo Spud. - I think therefore I yam.
References: | |
| >Bad error? (From: Brent Gulanowski <email@hidden>) |