• 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: How to hide disclosure triangle in NSOutlineView [10.5]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to hide disclosure triangle in NSOutlineView [10.5]?


  • Subject: Re: How to hide disclosure triangle in NSOutlineView [10.5]?
  • From: chaitanya pandit <email@hidden>
  • Date: Fri, 19 Sep 2008 22:36:00 +0530

What you can do is create an image which has nothing i.e is transparent and use the following method to set it as the image of disclosure triangle

- (void)outlineView:(NSOutlineView *)outlineView willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
{
[cell setImage:[NSImage imageNamed:@"myBlankImage.png"]];
}


hth,
Chaitanya

On 19-Sep-08, at 8:28 PM, Marc Respass wrote:

Hi All,

I have an outline view connected to a tree controller and I want to hide the disclosure triangle. I know that there is a data source delegate method, - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item, but when I make my controller the data source of the outline view and implement that method, it is never called. I am running in Leopard and I suspect that because I'm using bindings that the tree controller is the data source.

Any tips on how to hide the disclosure triangle but still allow children?

Thanks a lot
Marc
_______________________________________________

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

_______________________________________________

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: How to hide disclosure triangle in NSOutlineView [10.5]?
      • From: "Kyle Sluder" <email@hidden>
References: 
 >How to hide disclosure triangle in NSOutlineView [10.5]? (From: Marc Respass <email@hidden>)

  • Prev by Date: NSFetchRequest
  • Next by Date: Re: How to hide disclosure triangle in NSOutlineView [10.5]?
  • Previous by thread: Re: How to hide disclosure triangle in NSOutlineView [10.5]?
  • Next by thread: Re: How to hide disclosure triangle in NSOutlineView [10.5]?
  • Index(es):
    • Date
    • Thread