Re: NSMatrix and Uninitialized rectangle
Re: NSMatrix and Uninitialized rectangle
- Subject: Re: NSMatrix and Uninitialized rectangle
- From: Brian Webster <email@hidden>
- Date: Wed, 26 Nov 2003 15:47:40 -0600
Are you sure that your statusItem variable points to something valid?
Or the view it returns? If it didn't, or if it were nil, then the call
to the frame method would return undefined results, which could be
causing the problem. For instance, I would imagine that having either
a negative height or negative width would be unacceptable to NSView.
On Nov 26, 2003, at 12:26 PM, jim wilde wrote:
I'm trying to create an 1x3 NSMatrix to hold 3 NSButtonCells which I
want to display side by side. I want the resulting NSMatrix to be
displayed in an NSStausBarItem. However when try to initialize my
NSMatrix I keep getting this error:
2003-11-26 18:21:04.607 iTunesBar[18694] *** Assertion failure in
-[NSMatrix initWithFrame:], AppKit.subproj/NSView.m:600
2003-11-26 18:21:04.626 iTunesBar[18694] An uncaught exception was
raised
2003-11-26 18:21:04.627 iTunesBar[18694] Uninitialized rectangle
passed to [View initWithFrame:].
2003-11-26 18:21:04.627 iTunesBar[18694] *** Uncaught exception:
<NSInternalInconsistencyException> Uninitialized rectangle passed to
[View initWithFrame:].
I believe the offending line of code to be:
myMatrix = [[NSMatrix alloc] initWithFrame:[[statusItem view]
frame]];
Can anyone explain why this is happening?
I've not really messed around with creating my own custom views since
IB has always managed to do whatever I need it to.
Thanks
jim
_______________________________________________
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.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.