NSMatrix and Uninitialized rectangle
NSMatrix and Uninitialized rectangle
- Subject: NSMatrix and Uninitialized rectangle
- From: jim wilde <email@hidden>
- Date: Wed, 26 Nov 2003 18:26:49 +0000
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.