Drag and Drop to interface element ( Xcode 4 )

I’ve been reading over many of the posts in this forum about how to add drag and drop to my project. My problem is they all seem to leave out one part, how to bind my window element to my property. Unless I’m overlooking something, which is quite possible.

I understand how to bind properties of my elements, like my window’s visible property for example, but how do I bind the window itself to i can reference it so I can apply the registerForDraggedTypes_ method?

for example, i see that in a previous post http://macscripter.net/viewtopic.php?id=38265 they talk about setting a property dropBox…

property dropBox : missing value

then they reference it like this later on…

dropBox's registerForDraggedTypes_({current application's NSFilenamesPboardType})

but I’m not understanding how to bind it so that my project understands what item dropBox is.

Could someone please help me? I want to add drag and drop support into my interface, but I just can’t seem to find the info I’m looking for.

P.S. I’m working in Xcode 4.5.x

Thanks in advance,
Dave

If you go to www.macosxautomation.com/applescript/apps/, on the right at the bottom you will see a box entitled “Video: Actions and Outlets”. It has a link to a video that shows how connect outlets.

Connect, not bind. The distinction is important.

Thanks Shane, greatly appreciated! I’ll take a look. Also, thanks for pointing out my error in terminology, I often feel like i don’t know when to use which terms, so that helps.

Thanks again,
Dave

In Xcode 4.5.2, when i right click (ctrl + click) on my App Delegate i don’t seem to see a full list of my properties in the outlets, so I can’t select the property I want in order to connect it to my interface element. What might I be doing wrong?

Dave

Never mind, I figured out my problem. My property wasn’t set to missing value initially, which was causing it to not show in my list.

Thanks again Shane