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



Hi,

it won't work if the tab view is not visible. You can try to set the 'visibility' to true during the 'will finish launching' for example. So the code could look like:

on will finish launching theObject
set current tab view item of tab view 1 of window "PMmain" to tab view item theOneWithTheText of tab view 1 of window "PMmain"
-- your code here ...
set current tab view item of tab view 1 of window "PMmain" to tab view item theWantedOneOnStart of tab view 1 of window "PMmain"
end will finish launching


Hope this helps
Andreas

On 20.03.2005, at 15:35, Wim Melis wrote:

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


Andreas Kiel

Spherico
Nelkenstr. 25
D-76185 Karlsruhe
Tel.: +49 (0)721 183 9753
eFax: +1 650 897 8094
eMail: email@hidden
 _______________________________________________
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.