Re: Problem with setWraps method
Re: Problem with setWraps method
- Subject: Re: Problem with setWraps method
- From: Jay Prince <email@hidden>
- Date: Wed, 11 Jun 2003 13:21:11 -0700
SetWraps is probably working... the problem is likely that your cell
height is too short to see the second (or third) lines.
I had a similar problem with an NSTableView, where the cell was being
displayed, and the solution was to set the tableview's rowheight to be
large enough to see the wrapped cells-- when the cell wraps, it doesn't
make its super-view give it all the space it needs.
IF these are in a table view, be sure to get he current rowheight and
set it as a multiple of that. I think getting the fonts height and
using that as the factor you multiply leaves out some of the space
necessary to have the table look nice.
Good luck!
On Wednesday, June 11, 2003, at 02:49 AM, Partha wrote:
Hi,
In my Cocoa/Objective-C application, I have some NSCell. I'm setting
up cells'
properties by the following methods,
[cell setFont: [NSFont systemFontOfSize: 10] ];
[cell setTitle: @"This is my Text" ];
[cell setImage: myImage ];
[cell setWraps: YES ];
setFont, setTitle, setImage are working fine, but setWraps is NOT
working. The
title "This is my Text" is getting truncated, but I want the title to
be
wrapped. What is the problem with setWraps? It seems that setWraps is
NOT
working.
Thanks,
Partha
_______________________________________________
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.