• 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
Re: NSBrowser matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser matrix


  • Subject: Re: NSBrowser matrix
  • From: Fritz Anderson <email@hidden>
  • Date: Sun, 26 Jun 2011 06:04:01 -0500

On 25 Jun 2011, at 7:05 PM, Ari Black wrote:

> @implementation SpecialMatrix
>
> - (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode prototype:(NSCell *)aCell numberOfRows:(NSInteger)numRows numberOfColumns:(NSInteger)numColumns {
>    int x;
>    x = 0; // I put a breakpoint here
>
>    return self;
> }
>
> @end

You don't get to this point, so it's not the problem you have now, but I assume your real code invokes [super initWithFrame:...]?

> This is in the implementation of the class that controls  the window the browser is in:
>
> - (void)awakeFromNib {
>    [browser setMatrixClass:[SpecialMatrix class]];
>
>    [browser loadColumnZero];
>
>    NSMatrix *matrix = [storyLine matrixInColumn:0];  // <- return nil
>    matrix = [storyLine matrixInColumn:1]; // <- returns nil
> }

First step: Break in -awakeFromNib and verify that browser is not nil.

Second step: Maybe an NSBrowser doesn't instantiate any matrices until you have responded to browser:numberOfRowsInColumn: with a non-zero value?

	— F

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSBrowser matrix
      • From: Ari Black <email@hidden>
References: 
 >NSBrowser matrix (From: Ari Black <email@hidden>)

  • Prev by Date: Re: [ANN] CoreParse
  • Next by Date: Re: NSBrowser matrix
  • Previous by thread: NSBrowser matrix
  • Next by thread: Re: NSBrowser matrix
  • Index(es):
    • Date
    • Thread