Thursday, 27 October 2011

Xcode 4.1 Developer Preview 1 Release Notes

New Features

Editing Nib Files

  • You can create and edit view-based NSTableView instances.
    Just drag an NSView subclass (usually NSTableCellView) from the Object library into each table column. After connecting the datasource and delegate outlets, implement at least these methods:
    • – (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView
    • – (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
    You can bind the objectValue property of an NSTableCellView instance in Interface Builder. You can also make action connections from a cell to the cell’s owner, which is usually the table view’s delegate.
    By assigning identifiers to the view cells, you can use the NSTableView method –makeViewForIdentifier:owner: in the implementation of the table-view delegate method –viewForTableColumn:row:. 7465869

Enhancements

General

  • If Xcode or xcodebuild fail to launch:
    • Hold down Shift while launching Xcode
    • Use the xcodebuild -clearPlugInCache option. 9013457

Editing Nib Files

  • Building products that require Interface Builder 3 plug-ins may fail because the ibtool command-line tool is unable to locate the required ibplugin plug-in.
    If you have the Xcode 3 toolset installed on your computer, load the plug-in using the Interface Builder 3 preferences window. Otherwise, use this command:
    defaults write com.apple.InterfaceBuilder3 "IBKnownPluginPaths.3.2.7" -dict-add "<plug.in.identifier.string>" "<path_to_ibplugin>"
    8920581

Changes

Building: xcodebuild

  • The xcodebuild -activetarget option is not supported. 8361726

Performance Measurement and Analysis

  • MallocDebug is replaced by the Allocations and Leaks instruments, and the libgmalloc (GuardMalloc) and leaks command-line tools. 4388187

New Issues

Performance Measurement and Analysis

  • When using the Mac OS X Core Data template, Instruments may hang or stop tracing. 9031942
  • When you profile an application running in iOS Simulator, Instruments collects no data.
    To have Instruments collect data, click the Instruments icon in the Dock after it starts recording. 8909180

Known Issues

General

  • Nib files with explicit Xcode 3 file types open in the source editor instead of in Interface Builder.
    Set the file type of the nib file in the Identity and Type inspector to “Default,” deselect it in the project navigator, and select it again. 8028406

Editing Nib Files

  • Xcode disallows dragging objects in the Interface Builder canvas to the Object library. 8656363

Unit Testing

  • Projects that use the Xcode 3 unit-testing tools cannot use the Xcode 4 unit-testing infrastructure.
    To use unit testing in your Xcode 3 projects, set the Test After Build build setting to No. 8803198

No comments:

Post a Comment