TXT Records with NSImages
TXT Records with NSImages
- Subject: TXT Records with NSImages
- From: Joe Turner <email@hidden>
- Date: Thu, 12 Mar 2009 21:45:46 -0500
Hello,
Recently, I've been working on an app that will sync with an iphone
app. So, I am using NSNetServices. I would like the iPhone to display
the mac's icon, so I was thinking of using the TXT Record to store the
icon. However, whenever I add it to the dictionary, convert the
dictionary to data (using the NSNetService methd), it becomes nil. I
am guessing that's because it's too large. Then, I decided to set the
size of the image to (1,1) thinking it must be small enough. However,
I still got nil. Is there a way to send an NSImage (as NSData in the
dictionary, PNG formatted using an NSImageRep then converted to data)
through a TXTRecord. And, if so, is there a way for the image to be
able to be displayed on the iphone? I know an NSImage cannot be
displayed on the iphone, which is why I converted it to PNG data,
hoping the iphone could read that.
Thanks!
Joe
_______________________________________________
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