• 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
Re: [SOLVED] Loading NSFont from file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] Loading NSFont from file


  • Subject: Re: [SOLVED] Loading NSFont from file
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 16 Aug 2007 08:59:02 -0700
  • Thread-topic: [SOLVED] Loading NSFont from file

On Fri, 3 Aug 2007 07:57:00 -0700 (PDT), Brad Peterson <email@hidden>
said:
>Hi all,
>
>Sorry; the problem was resource forks. *sigh*
>
>I switched to using the Windows ver of the TTF font,
>and then ATSFontActivateFromMemory worked as it
>should.

Actually, there's a simpler way. It turns out that in Xcode there's a
setting Preserve HFS Data. This means that when Xcode assembles your project
by copying stuff into the Resources folder or whatever, it won't strip out
the resource fork. Problem solved. (And the reason I know about this is that
I had exactly the same problem you're describing.) m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

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

  • Prev by Date: Re: Cocoa Bindings master-detail interface with sets of data in the detail part
  • Next by Date: Re: How to require contiguous selection in a table view?
  • Previous by thread: Re: Cocoa Bindings master-detail interface with sets of data in the detail part
  • Next by thread: Tracking rectangles with Cocoa views in Carbon windows
  • Index(es):
    • Date
    • Thread