NSOutlineView sometimes truncates label
NSOutlineView sometimes truncates label
- Subject: NSOutlineView sometimes truncates label
- From: David <email@hidden>
- Date: Mon, 1 Jun 2009 23:24:30 -0400
I have an outline view where the first column are file names. There is
absolutely no processing of the name going on in my code. It uses a
data source delegate. The method
outlineView:objectValueForTableColumn:byItem: is returning an NSString
* with the proper value.
Everything has been working fine for a long time. Suddenly I discover
a filename that causes the value displayed to be truncated. I've
played with it. There are no special characters, they're all regular
ascii single byte characters. For some names it works, some get
truncated with no apparent rhyme or reason.
Has anyone seen anything like this before? Is this some weird bug or
explainable behavior in Cocoa? Could I be doing something wrong? My
application is running on Leopard with garbage collection enabled.
I've changed the name to be generic. The following filename
Xxxxxxxxxxxx.1111.2222.3333.444.55555555.666666.777
displays in my NSOutlineView as
Xxxxxxxxxxxx.
If I take out some xx's it works. Many other random changes will make
it work, such as changing the Xs to 0s. Some cases will cause it to
truncate at a later period, but it always truncates at a period.
This is extremely weird. Any suggestions appreciated.
_______________________________________________
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