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

Re: NSOutlineView Problem


  • Subject: Re: NSOutlineView Problem
  • From: Peter Maurer <email@hidden>
  • Date: Sat, 5 Apr 2008 20:07:55 +0200

i have checkboxes (NSButtonCell) in the first column of NSOutlineView.
problem is what should I return as object for that column.
Program is crashing there.

Try [NSNumber numberWithInt: (isChecked ? NSOnState : NSOffState)].

Also I need to show smaller font in other columns of this outline view.
The default font is bigger.
So do I need to set custom cell in order to achieve small font?

Try [[aColumn dataCell] setFont: aFont] -- you can also do this in Interface Builder by selecting the cell in question and hitting cmd-t, as far as I remember.


Cheers,

Peter.
_______________________________________________

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


References: 
 >NSOutlineView Problem (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: [Moderator] Re: Need for a creator code?
  • Next by Date: Re: Scaling a window background image quickly
  • Previous by thread: Re: NSOutlineView Problem
  • Next by thread: NSShadow on a raster image
  • Index(es):
    • Date
    • Thread