• 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
NSMatrix and Uninitialized rectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSMatrix and Uninitialized rectangle
      • From: Brian Webster <email@hidden>
  • Prev by Date: Re: Reading file permissions
  • Next by Date: Re: subclass NSWindow
  • Previous by thread: Re: NSImageView and TGA image format.
  • Next by thread: Re: NSMatrix and Uninitialized rectangle
  • Index(es):
    • Date
    • Thread