O'Reilly logo

Mac Application Development by Example Beginner's Guide by Robert Wiebe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – refining controls using fading

For some categories of full screen Apps, we may want components of the GUI to simply fade away if the mouse is not moved. We can do this in our iSight Recorder App by using a custom subview to monitor mouse moved events.

  1. First, we need to create a new file that uses the Mac OS X Objective-C class template.
  2. We can refer to the new class as BTSViewController and make it a subclass of NSView.
  3. After we create the class files we need to assign it, in the .xib file, to the Custom Class of the content view of the iSight Recorder window.
    Time for action – refining controls using fading

    Tip

    Receiving mouseMoved events

    The conditions under which a view receives ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required