• 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
Why this error in Xcode beta 4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why this error in Xcode beta 4?


  • Subject: Why this error in Xcode beta 4?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 24 Jul 2014 11:21:54 +0700

This code:

[ sharedDocumentController	openDocumentWithContentsOfURL: 	absoluteURL
								display: 						YES
								completionHandler:
	^void( MySubclassOfNSDocument *document, BOOL documentWasAlreadyOpen, NSError *error) { .. something .. }
]

Creates this error:

Incompatible block pointer types sending 'void (^)(MySubclassOfNSDocument *__strong, BOOL, NSError *__strong)'
to parameter of type 'void (^)(NSDocument *__strong, BOOL, NSError *__strong)'

Should the compiler not know that MySubclassOfNSDocument is indeed what the name implies?
There is also an: #import "MySubclassOfNSDocument.h" .


Gerriet.


 _______________________________________________
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: Why this error in Xcode beta 4?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: How to detect endian-ness in Swift?
  • Next by Date: Re: Why this error in Xcode beta 4?
  • Previous by thread: Re: does Xcode 3.2.6 still run in Yosemite?
  • Next by thread: Re: Why this error in Xcode beta 4?
  • Index(es):
    • Date
    • Thread