• 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: Programmatic OutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic OutlineView


  • Subject: Re: Programmatic OutlineView
  • From: Matt Covey <email@hidden>
  • Date: Mon, 15 Apr 2002 20:46:37 -0700

Matt,

You need to use "setOutlineTableColumn:", as in:

NSOutlineView *ov = ...;

[ov setOutlineTableColumn: [[ov tableColumns] objectAtIndex: 0]];

++matt


>Hello again,
>
>Sorry if you get this twice but I'm not sure the first message I sent went through...
>
>I'm attempting to create an NSOutlineView programmatically (I've been told it is easier to use nibs but I have to do it this way...).
>
>I've managed to create the NSOutlineView, add it to the NSScrollView and display it in a window with the data in my data source, but as soon as there is a parent-child relationship in the data I get the following assertion failure:
>
>Assertion failure in -[NSOutlineView _locationOfColumn:], NSTableView.m:432
>Invalid parameter not satisfying: (index >= 0) && (index <= numColumns)
>
>I have only one column that is added using the call:
>[m_table addTableColumn:m_column1];
>
>Where m_table is my OutlineView and m_column1 is the column I m adding...
>
>Does anyone have any clue how to fix this, or an example of a programmatically created NSOutlineView?
>
>Thanks a heap,
>
>Matt Smith
>_______________________________________________
>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.
_______________________________________________
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.

References: 
 >Programmatic OutlineView (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: NSFileManager and aliases
  • Next by Date: Re: [me needsHelpWith:prefPanes]; - Humor :)
  • Previous by thread: Programmatic OutlineView
  • Next by thread: Re: To make a genie...
  • Index(es):
    • Date
    • Thread