The Apple Core

Jason D. O'Grady & David Morgenstern

Apple releases Xcode 4 preview

By | July 24, 2010, 11:35pm PDT

Summary: Apple recently introduced Xcode 4 to the public. The IDE is used to build Mac OS X and iOS apps, and offers developers a new user interface, integrated Interface Builder, LLVM compiler 2.0 support, and improved instruments.

Apple recently revealed the preview of its Xcode 4 programming environment to the public. The IDE is used to build Mac OS X and iOS apps, and offers developers a new user interface, integrated Interface Builder, LLVM compiler 2.0 support, and improved instruments.

On the interface front, Xcode 4 consolidates the previous multiple windows into a single window. It also introduces a set of navigators on the left hand side of the window include a list of project files, a central search interface, issue tracking, debugging data with compressible stack traces, active and inactive breakpoints, and a persistent collection of logs.

There’s also a “Jump Bar” that shows the relative location of your current file and lets users click, or jump, to any other file on that level.

In addition, Interface Builder is no longer a separate application and is now integrated into the Xcode 4 IDE.

The best part: you can drag connections directly from the UI design to the source code. Xcode 4’s new split editor layout makes it easy to wire up your actions and outlets simply by dragging a connection to existing code - one gesture and you’re done. Don’t yet have the code ready to connect? Xcode will create a new outlet or action for you, just drag to an empty space in your source file and Xcode will generate the code.

Here are some additional new features:

Xcode Assistant. According to Apple, when the Assistant is invoked, the IDE will “anticipate which other files you need to see, as you work.”

Editing a new derived class? The Assistant will show you the code for the class you are inheriting. Writing new implementation code? The Assistant will automatically show you the corresponding header. When designing an interface, the Assistant will show you the appropriate controller, making drag-and-drop code connections extremely simple. Data model designing will bring up the classes that back your models - all automatically.

LLVM Compiler 2.0. Apple says that the new compiler is twice as fast as GCC and produces faster final applications.

With Xcode 4, the compiler is more than a command-line tool. LLVM is fully integrated into the IDE itself. Syntax highlighting, code completion, and every other index-driven feature is handled by the LLVM parser. If the compiler knows about a symbol, so does the Xcode IDE. C, C++, and Objective-C are all accurately understood at editing time, exactly as they are when building.

In addition, Instruments for Xcode 4 presents a new interface.

New data collection instruments are also available, including OpenGL ES for tracking iPhone graphics performance, new memory allocation monitoring that can find unintended memory growth, Time Profiler on iOS for collecting samples with very low overhead, and complete System Trace for insight into how all system processes interact.

Instruments covers even more ground, has even lower overhead, and is more useful than ever before.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

David Morgenstern has covered the Mac market and other technology segments for 20 years.

Disclosure

David Morgenstern

Freelance journalist/blogger David Morgenstern has nothing to disclose.

Biography

David Morgenstern

David Morgenstern has covered the Mac market and other technology segments for 20 years. In the recent past, he founded Ziff-Davis' Storage Supersite, served as news editor for Ziff Davis Internet and held several executive editorial positions at eWEEK. In the 1990s, David was editor of Ziff Davis' award-winning MacWEEK news publication as well as its successor title, eMediaWEEKly, which focused on multiplatform professional content creation. His byline can be found online and in print publications including CreativePro.com, Peachpit Press' Mac Bible and Popular Photography.

7
Comments

Join the conversation!

Just In

RE: Apple releases Xcode 4 preview
jackson1984-24316069205748857739440257893812 11th Oct
undoubtedly must say you generate a wide variety of terrific elements and unquestionably will content a handful mulberry bags of opportunities to incorporate in soon on each individual day or two.
0 Votes
+ -
Hopefully
Macintoshtoffy 25th Jul 2010
Hopefully this will lead to an improvement in the quality of Mac applications - if debugging and writing code is easier then hopefully that'll lead to applications that easier to create and maintain. With the moving to XCode 4.0 - are we going to see Apple switch to LLVM as the default compiler for the next release of Mac OS X? I hope so grin
0 Votes
+ -
@Robert penn: the old joke goes, "Yes." "Gee, that's great! I always wanted to play the violin."

So the answer is probably, no. Xcode4 makes coding easier, but you have to know what you're doing, and the question is so lame that we'd have to assume you're just joking.

On the other hand, if you can code it in any other environment, step right up.
0 Votes
+ -
But, will it run on Windows? :P
0 Votes
+ -
RE: Apple releases Xcode 4 preview
dmendels 26th Jul 2010
Honestly, the BIG change will be the integration of interface builder. It was just not logic to have it separate anymore, where we were obliged to "wire" actions to "empty" windows. So, a good thing. Now the real worry is whether they change the packaging of the frameworks yet again, i.e. do I need to edit the projects in the terminal to reroute again, or do things get nice and finished this time??
Otherwise, it's getting easier each time to do easy things, but hard coding remains hard (and will always be?).
Plus question: what about the Collada integration in this inception? It's been publicized as a feature of SL, but there's no SDK that I can find, nor much word about it...
0 Votes
+ -
RE: Apple releases Xcode 4 preview
philip.robar@... 27th Jul 2010
Apple says that there's a download, but when I follow the links to the developer site and login all I can find is a recent update of Xcode 3.X.
0 Votes
+ -
RE: Apple releases Xcode 4 preview
svenyonson 31st Jul 2010
@philip.robar@...

Hard to find, but here it is:
developer.apple.com/iphone/index.action#betadownloads

2.4 GB download though - about 8 hours for me.
0 Votes
+ -
RE: Apple releases Xcode 4 preview
jackson1984-24316069205748857739440257893812 11th Oct
undoubtedly must say you generate a wide variety of terrific elements and unquestionably will content a handful mulberry bags of opportunities to incorporate in soon on each individual day or two.

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix