We are going to add two new pop-up menus to our App that will allow the user to select the audio and video compression methods that will be used when a movie file output is connected to our capture session. We will also add a checkbox that is used to enable or disable the selected compression options.
In the file named
MainMenu.xib
, select the iSight Recorder window.In the Size Inspector, change the Height to
400
and the Minimum Size Constraint Height to400
.Add a checkbox titled Compress and two pop-up buttons below the buttons titled Stop and Record. It should look similar to the following screenshot:
In the file named
BTSAppDelegate.h
, add a new@property
items of typeNSButton*
and name itm_compressButton
.Add two more properties of type
NSPopUpButton*
and name themm_audioCompressionPopup
andm_videoCompressionPopup
.Use the Assistant editor to connect the newly defined properties from the
.h
file to the buttons in the.xib
file.In the file named...