• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode 6.1.1 Modernization fails on selectors returning blocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 6.1.1 Modernization fails on selectors returning blocks


  • Subject: Xcode 6.1.1 Modernization fails on selectors returning blocks
  • From: Jean Suisse <email@hidden>
  • Date: Sat, 14 Feb 2015 00:32:27 +0100

Dear All,

Today, I have decided to modernize & migrate to 10.10 + ARC one large application (280+ source files). It is a scientific data acquisition app that heavily relies on (serial) queues and dispatched blocks to run and synchronize concurrent processes. Each experiment is represented by a class that has selectors returning blocks such as:

- (dispatch_block_t)experimentInitBlock;

I have like 380+ of these methods across many such classes.
The issue is that Xcode’s refactor feature modernizes the previous declaration in:

@property (readonly, copy) dispatch_block_t;

The worse part is that the name of the selector is lost. So manual correction requires a lot of search and compare with a copy of the project… and then modernization also changes line numbers…

My two questions are:

1. Is it a bug?
2. Does anyone knows of a workaround?

Thanks,
Jean
-----------
Jean Suisse

Institut de Chimie Moléculaire de l’Université de Bourgogne
(ICMUB) — UMR 6302

U.F.R. Sciences et Techniques, Bâtiment Mirande
Aile B, bureau 413
9, avenue Alain Savary — B.P. 47870
21078 DIJON CEDEX

T: +333-8039-9037 
F: +339-7232-2604
E: email@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 6.1.1 Modernization fails on selectors returning blocks
      • From: Jens Alfke <email@hidden>
    • Re: Xcode 6.1.1 Modernization fails on selectors returning blocks
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: alloc in Swift
  • Next by Date: Re: alloc in Swift
  • Previous by thread: Re: alloc in Swift
  • Next by thread: Re: Xcode 6.1.1 Modernization fails on selectors returning blocks
  • Index(es):
    • Date
    • Thread