FROM : Stefan Heukamp
DATE : Tue Apr 03 18:03:03 2007
Hi,
I know this thread is some weeks old but I had the same proplem and
it helped me too.
But there is one thing left that I don't get working. My OutlineView
is editable and when I start editing a cell, the icon is visible
anymore because the fieldeditor is in front of it.
I overrode the
- (NSText *)setUpFieldEditorAttributes:(NSText *)textObj
to move the fieleditor by some pixels to the right. But that does not
work since the frame of the textObj (Instance of NSTextView) is even
after the call to the super class not positioned (Frame = {{0.00,
0.00}, {0.00, 14.00}}) and when I set those values they are
overwritten of course.
Could you give me a hint on how to handle this?
Stefan Heukamp
Am 18.01.2007 um 00:11 schrieb Jerry Krinock:
> on 07/01/17 12:35, Mitchell Livingston at <email_removed> wrote:
>
>> I am using an NSOutlineView with NSBrowserCell to display a folder
>> hierarchy. My problem is that the disclosure triangle is directly
>> next to the image in the column, but I want a tiny amount of spacing
>> between the triangle and the image. I am not sure how to do this, so
>> any help would be appreciated.
>
> I've done this with an NSTextFieldCell. I subclassed it and over-
> rode the
> -drawWithFrame method to draw icon and text, in two separate
> rects. Since
> NSBrowserCell is a subclass of NSCell too, this should work for you.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Tue Apr 03 18:03:03 2007
Hi,
I know this thread is some weeks old but I had the same proplem and
it helped me too.
But there is one thing left that I don't get working. My OutlineView
is editable and when I start editing a cell, the icon is visible
anymore because the fieldeditor is in front of it.
I overrode the
- (NSText *)setUpFieldEditorAttributes:(NSText *)textObj
to move the fieleditor by some pixels to the right. But that does not
work since the frame of the textObj (Instance of NSTextView) is even
after the call to the super class not positioned (Frame = {{0.00,
0.00}, {0.00, 14.00}}) and when I set those values they are
overwritten of course.
Could you give me a hint on how to handle this?
Stefan Heukamp
Am 18.01.2007 um 00:11 schrieb Jerry Krinock:
> on 07/01/17 12:35, Mitchell Livingston at <email_removed> wrote:
>
>> I am using an NSOutlineView with NSBrowserCell to display a folder
>> hierarchy. My problem is that the disclosure triangle is directly
>> next to the image in the column, but I want a tiny amount of spacing
>> between the triangle and the image. I am not sure how to do this, so
>> any help would be appreciated.
>
> I've done this with an NSTextFieldCell. I subclassed it and over-
> rode the
> -drawWithFrame method to draw icon and text, in two separate
> rects. Since
> NSBrowserCell is a subclass of NSCell too, this should work for you.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Mitchell Livingsto… | Jan 17, 21:35 | |
| Jerry Krinock | Jan 18, 00:11 | |
| Dominik Pich | Jan 18, 00:48 | |
| Jerry Krinock | Jan 18, 03:45 | |
| Stefan Heukamp | Apr 3, 18:03 | |
| Jerry Krinock | Apr 4, 19:36 | |
| Aulis Telle | Apr 5, 09:24 |






Cocoa mail archive

