[F-Script-talk] not automatically introspecting, wtf?
Brought to you by:
pmougin
From: zuzu <sea...@gm...> - 2004-07-31 04:41:51
|
http://www.macdevcenter.com/lpt/a/1364 "When the browser opens, it displays a textual description of an object or list of objects. To do this, the browser asks objects for their description by sending the message printString. If you are familiar with F-Script, you will know that all objects respond to this message, whose default behavior is to call the standard NSObject method description. When you are browsing your workspace, the name of each variable is displayed to the left of the corresponding object description. Once you have identified the object to which you will send a message, you just need to select it by clicking on it." uh, no, no it doesn't. not for me on osx 10.2... instead the object browser merely displays "sys = <an instance of System>" i can use "select view" to click on gui objects to reveal NSButton or NSView... but that doesn't help me with NSObject, or getting a feel for the _mapping_ of the objects in an application. for example, i want to understand how TextEdit.app is composed... i've got it linked to F-Script with 'F-Script Anywhere'... supposidly it *should* display the instances of the objects loaded, their methods and values. but other than "select view", it doesn't. and even with "select view" i cannot simply edit the text of a value and manipulate the app in real-time. what am i doing wrong, with the intention of using the objective-c runtime to introspect running applications? TIA, -z |