New Site Address! http://blogs.msdn.com/b/jonathan_wise/

11Mar/090

Resolving missing dependencies when building a NeXTStep/OpenStep App

If you've played around with NextStep/OpenStep trying to build a sample app -- say, so you can find out how much OS X/the iPhone is like those sweet black machines of yesteryear -- you might have an error like this one, when attempting to build a sample app you've created: AppKit.h not found (or any one of the other billion header files that are missing)

This may mean an incomplete installation of the Developer tools. Here's what to do:

  • From the Developer CD, open the NextCD folder and then Packages.
  • From the Services menu, use Open Sesame to open the Package as Root
  • Install the Package to its default file locations.

NextStep: Open as Root

Now, in your project in PB, you may need to tell the compiler where to find those libraries.

  • From the Tools menu, open the Inspector and look at the Build Attributes.
  • Under Framework Search Order, Set... a new path to where those files just got installed: /NextLibrary/Frameworks
  • Do the same for Header Search Order, but use /NextDeveloper/Headers

Project Builder: Framework Search

Now you should be able to Build in Project Builder! Note that PB doesn't have a "Build and Go" that I can find, so once you build, you need to use Workspace Manager to find your newly made .app and double click it to test it out.

Tagged as: No Comments
2Mar/090

UpdateLayout in WPF

Sometimes when you're working on a UI in WPF, the actions of one method won't actually happen before the next method begins running on them. This can cause weird results if your second method depends on the first method's changes being done rendering.

Use the UpdateLayout() method to make sure your changes are actually done before you begin operating against them. It will make life so much better.

Tagged as: No Comments