ImageCalc

ImageCalc - App that will display an image which is being continuously updated
Download

ImageCalc Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Cameron Hayne
  • Publisher web site:
  • http://hayne.net/MacDev/Perl/zero_separated
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 12 KB

ImageCalc Tags


ImageCalc Description

ImageCalc - App that will display an image which is being continuously updated ImageCalc is an app that will display an image which is being continuously updated. The image (which is calculated in a separate thread) is a black & white triangle that transforms into a random pattern of grey pixels. One of the calculation parameters is controlled via a slider and a key goal of this project was to have the calculation ongoing with the image continuously updating even while the user is moving the slider around. Statistics on the update rates for the display ("view") and calculation ("model") are available in a drawer that can be opened via the Window menu.This project illustrates several aspects of programming for Mac OS X using the Cocoa API:· calculation in a separate thread· synchronizing use of shared variables via NSLock· image drawn via NSBitmapImageRep in a subclass of NSView· regular display updates via NSTimer· using NSEventTrackingRunLoopMode to get timer events while mouse is down· handling window resizing via inLiveResize· handling model size constraints when resizing· auxiliary information displayed in an NSDrawerRequirements:· Xcode (to build the app from source)


ImageCalc Related Software