Re: NSTableView: displaying number of selected rows (error with image)
Re: NSTableView: displaying number of selected rows (error with image)
- Subject: Re: NSTableView: displaying number of selected rows (error with image)
- From: Karim Morsy <email@hidden>
- Date: Mon, 20 Mar 2006 17:06:07 +0100
thanks for the hint, chad!
this is exactly what I needed.
however the image doesn't get displayed when I do:
NSImage *im= [ct smallBadgeForValue:8]; // returns an NSImage
return im;
in NSTableView's - (NSImage *)dragImageForRowsWithIndexes:(NSIndexSet
*)dragRows tableColumns:(NSArray *)tableColumns event:(NSEvent*)
dragEvent offset:(NSPointPointer)dragImageOffset.
I get the following message in the log:
dragging image does not contain bitmap
Could not create CoreDragImageSpec from NSImage
anyone know what might be missing here when creating the image ?
thanks,
Karim
On Mar 19, 2006, at 11:41 PM, Chad Weider wrote:
On Mar 19, 2006, at 1:37 PM, Karim Morsy wrote:
I am using an nstableview as a dragging source. when I drag from
the table view I display an nsimage under the mouse coursor. now
what I would like to do is display the number of selected rows as
well. I know how to retrieve the value but how can I show the
number on top of the image (like it's done in the iApps, such as
itunes or mail).
any hints would be really appreciated.
Here's some code to get the fancy badge:
http://blog.oofn.net/projects/misc#CTBadge
Chad Weider
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden