setting hidden of many things, especially image views

I have been trying to make things hidden, but most importantly image views i have tried
set hidden of image view “car” of window “main” to true, but nothing happens. does same with buttons. Please help!
Thanks
~Balthamos

Try:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

thanks! worked like a charm. i had origionally tried that, but the box wasnt checked for clicked, it was dashed. oops! :oops:
Thanks
~Balthamos

i ran into another problem, i tried to do
set selected of tab view item 1 of tab view 1 of window 0 to true
it tells me “access not allowed” what do i have to do to let me access it?
~Balth

		tell tab view 1 of window 0
			set current tab view item to tab view item 1
		end tell

thanks, again worked perfectly. now I have one more question. Now correct me if im wrong, but the “on awake from nib” statement means as soon as that object is soon as the app starts up, right? I’ve always wanted to know what that was, since many test apps ive used use that statement.
thanks
~Balthamos

Not quite. “awake from nib” means when theObject gets loaded from disk.

Say I have two nibs. Only the first one is loaded (the one from MainMenu.nib most likely if you haven’t changed the name). The second nib (lets call it Second.nib) is still setting on the disk, completely oblivious to it all until there is a line like ‘load nib “Second.nib”’. If you have ‘awake from nib’ selected for two objects, and they are both in Second.nib, the code in the awake handler will only get executed after the 'load “Second.nib”, not at application start time. However, if those objects are in MainMenu.nib, then it is very much just another step in the application start sequence.

Some handlers that are run at application start-up time are: “on will finish launching some_thing”, “on launched some_thing”, AND “awake from nib some_thing” - but only for the main nib (probably MainMenu.nib).

awake from nib can get called as many times as you have objects (say to set contents or to set the state of a checkbox), but an application only starts up once (where you would read preferences or set which windows to display).

thanks for that explanation, that clears a lot of things up for me. Again, you guys have solved my problems quickly and precisely which has brought me to a better programmer than I once was.
Again, Thanks,
~Balthamos