Hi there,
I just don’t get it… ahhhhhhhhh… :mad:
So I just wanted to play around and try to make a popover with 2 textfields that get their text from the code.
script AppDelegate
property parent : class "NSObject"
property myLBL01 : missing value -- connected via IB to Label 1
property myLBL02 : missing value -- connected via IB to Label 2
property popoverWindow : missing value --connected via IB to PopoverViewController
-- in IB I have a HUD window that contains the 2 Labels and is connected to the PopoverViewController
on applicationWillFinishLaunching_(aNotification)
-- Insert code here to initialize your application before any files are opened
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
-- Insert code here to do any housekeeping before your application quits
return current application's NSTerminateNow
end applicationShouldTerminate_
on openPop_(sender) -- connected via IB to a button
myLBL01's setStringValue_("Text01")
myLBL02's setStringValue_("Text02")
popoverWindow's showRelativeToRect_ofView_preferredEdge_(sender's |bounds|(),sender,2)
end openPop_
end script
What am I doing wrong?
Also: where would I adjust properties for the popover like “animates”?
Thanks in advance.
Cheers,
Chris