XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.
XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.
- Subject: XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.
- From: "Lee, Frederick (Ric)" <email@hidden>
- Date: Thu, 13 Nov 2008 10:54:43 -0500
- Thread-topic: XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.
Greetings:
The following code:
CFDataRef faxMsgData = (NSData *)[[self.faxHistoryItemDict
objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding];
CGDataProviderRef faxMsgDataRef =
CGDataProviderCreateWithCFData(faxMsgData);
gives me the following compiler warning:
...: "warning: initialization from incompatible pointer type"
I get the same warning with/without the (NSData *) cast.
What am I doing wrong?
Regards,
Ric.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden