slideDraggedImageTo:
slideDraggedImageTo:
- Subject: slideDraggedImageTo:
- From: Dustin Mierau <email@hidden>
- Date: Tue, 19 Feb 2002 13:45:18 -0800
Erm, so there is this method which is part of the NSDraggingInfo
protocol:
slideDraggedImageTo:(NSPoint)
Has it been implemented? Cause it doesn't seem to do anything.
I am calling it in my prepareForDragOperation: method which is probably
the problem, but thought I would double check.
-dustin
On Tuesday, February 19, 2002, at 11:16 AM, Greg Titus wrote:
On Tuesday, February 19, 2002, at 10:06 AM, Dan Wood wrote:
How does one condense text (say, in an NSTextField)? I notice that on
OmniDiskSweeper, if you click on an item that is part of a package,
there is text below that says "Part of package X,Y,Z" and the text is
condensed (sometimes a bit too much) to fit the width available.
I'd love to use this technique to squeeze long things into short
spaces when required. Any pointers?
Check out OAShrinkingTextDisplayer in OmniAppKit.
Basically, we just reset the view's bounds to fit the text (while
leaving the frame unchanged) if the text would otherwise be too wide.
That way, NSView's built in coordinate transformation machinery does
everything for us.
(I.e. we're 'zooming' the view with the text in it horizontally instead
of messing with kerning or font condensing or anything at all text
related, really.)
Hope this helps,
--Greg
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev
_______________________________________________
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.