Why this error in Xcode beta 4?
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