Re: [F-Script-talk] embedded question
Brought to you by:
pmougin
From: ackerman <rd...@pa...> - 2005-05-02 19:41:30
|
On May 2, 2005, at 1:46 AM, Felix Franz wrote: >> On May 1, 2005, at 7:09 PM, ackerman wrote: >>> i am using the fscript palette to put a fscript view on my apps main >>> window. >>> when i do a 'sys browse' in it, in the left column i see 'sys = <an >>> instance of System>'. >>> Where are the objects of my program? shouldn't i see them there? >> >> i forgot to mention that i can use 'select view' to click on an object >> in my gui and see its attributes. >> but what i was interested in is a list of all the objects in my >> program >> -- not just gui objects that i can see in the interface. > > You can create an FSInterpreter-object and set objects via > the setObject:forIdentifier: method. Something like: > > interpreter = [[FSInterpreter alloc] init] > [interpreter setObject: myImportantObject forIdentifier: @"obj1"]; > ... > [interpreter browse]; > > now you should see "obj1" in the left column. i was hoping to avoid this level of manually adding code to inspect an object. i want to type 'sys browse' in the FSInterpreterView and see a list of instances of all allocated objects, preferably listed by class. the docs seem to show this happening, but i don't see any object instances in my object browser. so i am wondering what i have to do to see my apps objects in the browser that is embedded in my app. Thanks for replying --- |