Reloading frameworks in OpenMCL
Handy little trick… I'd assumed that because Cocoa frameworks couldn't be unloaded, I would have to restart my OpenMCL session each time I needed to reload my view framework (which is quite often, debugging views!).Well, thankfully I was wrong — another call to open-shared-library reloads the library or framework:
Combine this with the awesome Cocoa listener (open openmcl and type (require "COCOA-APPLICATION"); this will spit out OpenMCL.app in the ccl directory), and I have a remarkably rapid development environment for Cocoa.(open-shared-library "RedwoodViews.framework/RedwoodViews")
Now I just need more macros to wrap message sends and so forth… though actually, while in Objective-C it's easier to send messages, it's not so convenient to extend the syntax for common operations (e.g. getting the label for a node — I'd need to add a method to some class somewhere, or define a nasty little preprocessor macro), so I suppose it all balances out!
Posted at 2005-01-07 07:42:53 by Richard • Link to Reloading framewor…
Comments, trackbacks.
