Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Xcode 4.3, can I require forward method declarations as before

Prior to Xcode 4.3, if you wanted to use a method before you declared its implementation, you were required to forward declare the method (as with a C function prototype). This would usually be done in a class continuation (AKA class extension, private category). There's a good example in this question: Private Methods in Objective-C, in Xcode 4.3 I no longer need to declare them in my implementation file ?.

As of 4.3, this is no longer required; DRYers rejoice.

But can this magic be turned off, returning to the pre-4.3 behavior?

like image 680
Clay Bridges Avatar asked Apr 02 '12 18:04

Clay Bridges


1 Answers

Currently this is not possible. The parsing behavior for Objective-C was changed to no longer require forward declarations.

like image 162
Vincent Gable Avatar answered Jan 04 '23 08:01

Vincent Gable