Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Drag and drop for my cocoa app...

Drag and drop for my cocoa app...
Thread Tools
Mac Elite
Join Date: Dec 2003
Location: I'll let you know when I get there...
Status: Offline
Reply With Quote
Sep 13, 2004, 05:28 PM
 
Anyone read mac addict? Last issue had instructions for an app that used the plist file to get the recent items list and display that in a dock-ish window. I made all the changes I wanted to it, but i can seem to add a way to make it function like the dock. I want the user to be able to drag any app or file or folder into the window, and have it stay there. After my mods the app no longer uses the recenet items plist but a seperate plist in which i added just the apps i want. Basically what I am tryin to create is a second dock, but Im stuck at this drag and drop bit. I hope I was clear enough but if not tell me so I can try to explain better.

Also, since I am trying to make a second dock, is there a way to make the icons enlarge as the dock icons do? Not a key bit to functionality but it looks cool. THanks
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 13, 2004, 06:04 PM
 
1. Have you read the documentation? If that's not enough, I recommend the excellent Cocoa Dev Central tutorial.

2. Yes, there are several ways to draw images at different sizes. I'm not familiar with the tutorial in question, so I can't tell you how to do it here. But what fun would it be if I just gave it away, anyway? Try looking at NSImage and NSAffineTransform for ideas.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Dec 2003
Location: I'll let you know when I get there...
Status: Offline
Reply With Quote
Sep 13, 2004, 10:22 PM
 
thanks,

i'll ponder a bit more b4 i beg for the answer
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2