Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making text field inside tab view item droppable



I use your syntax when setting the contents of fields in a tab view, but I set drag types a little differently.

on awake from nib theObject
	log (theObject)
	if (name of theObject as string) is "someTextField" then
		tell theObject to register drag types {"file names"}
	end if
end awake from nib

log reports theObject as: "text field id 10 of view id 6 of tab view id 5 of window id 3" but it sounds like that's a variation you've already tried (i.e. view "SM_TAB_SAVE" instead of tab view item "SM_TAB_SAVE"). My window with the tab view has "Visible at launch time" unchecked.

Tony


Hi all,

I'd like to make a text field inside a tab view item droppable, but I can't
seem to find the right syntax for it. This is in the 'awake from nib'
handler:

set t to text field "SM_INDYFOLDERNAME" of tab view item "SM_TAB_SAVE" of
      tab view "SM_TABVIEW" of window "PMmain"
tell t to register drag types {"file names"}

But this causes an error. I've tried all sorts of extras, 'view of tab view
item', 'contents of', but none of them works.

(This is only within tab view items, I have drops working fine when done in
the main window.)

Could someone help me out with the proper syntax for this one?

Thanks,
Wim

--
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >Making text field inside tab view item droppable (From: Wim Melis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.