• 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
TXT Records with NSImages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: TXT Records with NSImages
      • From: Keith Duncan <email@hidden>
    • Re: TXT Records with NSImages
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: NSGradient draws incorrectly in PDF context?
  • Next by Date: Re: Poof! Recently-saved Core Data document suddenly gets dirty
  • Previous by thread: Re: NSWorkspaceWillPowerOffNotification from a daemon
  • Next by thread: Re: TXT Records with NSImages
  • Index(es):
    • Date
    • Thread