Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Community Center > Off Topic

Reply
 
LinkBack Thread Tools Display Modes
Old 09-07-2011, 02:37 PM   #1 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default Found one more

Just submitted this:

Quote:
Summary:

Code completion and coloring is not available in preprocessor directives where the condition is not met on the development machine.


Steps to Reproduce:

Within a method of a UIViewController subclass put this code:

#if NS_BLOCKS_AVAILABLE

#else

#endif

Now, try typing code for the first (if == true) condition. The code completion and coloring works as expected. After that, try typing code, for example [UIView beginA..., in the else block. There is no completion at all. Once fully typed, there is also no coloring of the code.


Expected Results:

Expected the IDE to provide code completion and coloring.


Actual Results:

There is no completion at all. Once fully typed, there is also no coloring of the code.

Regression:

Mac OS X 10.7.1 Lion with Xcode 4.1.


Notes:

It appears that the background compiler utilized for code completion and coloring obeys the preprocessor directives and completely disregards any code if the condition is not met on the development environment.
Just discovered it now while reworking some code to support older 3.x platforms where block animations aren't available.
baja_yu is offline   Reply With Quote
Old 10-18-2011, 08:39 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Got a response today. They're looking into it
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 470
20 members and 450 guests
7twenty7, beckz007, Bryan1, ChrisYates, coolman, David-T, Domele, iAppDeveloper, iSDK, jbro, Kieren Harrold, mer10, MysticLine, nadav@webtview.com, Raphael Rivas, revg, SLIC, solardrift, taylor202, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,685
Threads: 94,132
Posts: 402,935
Top Poster: BrianSlick (7,990)
Welcome to our newest member, merlynpc45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:16 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0