From: Sean P. <sp...@ad...> - 2006-02-02 06:41:54
|
Not quite sure what you mean by an "ASL dialog"? Do you want to connect a nib based layout to an Adam sheet? Do you want to connect it to an Eve layout? I'd guess you are going to try to connect it to an Adam sheet to pick up the logic. All of the components of ASL can be used individually - you can use adam_parser/evaluate/adam to construct your sheet, then read in your nib (I assume you just want to let the Mac just construct your dialog) - then traverse the HIView and bind the carbon events you want to cells in the sheet (if you have a string for a property and you want to parser it you can use the expression parser and virtual_machine to parse and evaluate it). To see how to bind to carbon events, take a look at the Mac UI core implementation. I wouldn't object to having a Mac only addition that let you construct our widgets (like a checkbox_t) from an appropriate HIView. If you want to use an Eve layout, things get a bit more tricky as you need to provide Eve with the layout hierarchy - you could do that from a carefully constructed nib (maybe using some panels as proxies for row/column layout) - but inferring a layout isn't going to work. Going with nibs you'll lose the dynamic layout that Eve enables, localization, and cross platform descriptions - I'm hoping someone will step up to write a visual editor (the infamous Expresso double- shot) then we can have the best of both worlds. The ASL components are all being designed with a visual editor in mind (this is why comments are built into the syntax for Adam and Eve - to support round-trip editing). We'll get there eventually. Sean On Feb 1, 2006, at 5:18 PM, David Catmull wrote: > Is there any way to set up an ASL dialog using existing controls, > such as from a nib file? It seems none of the control classes have > constructors that will take a ControlRef. > > I want to use a nib because, basically, it's easier to use > Interface Builder to design my dialogs. I'm thinking along the > lines of adding the binding information using control properties. > > Also, my current task is creating custom content for a Navigation > Services "save as" dialog, so having Eve create its own window may > be hard to work with. > > -- > David Catmull > unc...@un... > http://www.uncommonplace.com/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Adobe-source-devel mailing list > Ado...@li... > https://lists.sourceforge.net/lists/listinfo/adobe-source-devel |