Retrieving an NSFont from an OTF in bundle Resources

2010-06-10 Thread Elliott Cable
I’m trying to do something pretty simple (or so I would think). I need to get an `NSFont` (to apply to portion of an `NSMutableAttributedString`) from an OpenType file in the Resources folder of my bundle. First, I grab an `NSURL`: NSURL *fontURL = [NSURL fileURLWithPath: [[self bundle] pathF

Re: Quicktime Movie View error

2009-02-05 Thread elliott cable
> On Tue Nov 11 05:09:44 2008, Joey Hagedorn wrote: > > On Nov 10, 2008, at 3:01 PM, Christopher Kempke wrote: > > I'm trying to create a very, very simple QuickTime viewer in Cocoa. > > > > I create a new Application, add QTKit and Quicktime frameworks, and > > drag a QuickTime Movie View into the

Re: Quicktime Movie View error

2009-02-06 Thread elliott cable
On Thu, Feb 5, 2009 at 11:02 PM, Kyle Sluder wrote: > On Fri, Feb 6, 2009 at 1:05 AM, elliott cable wrote: >> today, and I'm running into the same problem. Does anybody know how I >> can fix it *without* switching away from XIBs? (I'm versioning my >> stuff in

Re: Quicktime Movie View error

2009-02-07 Thread elliott cable
commit as granularly as I do (one commit between every one and three minutes, no longer than 5 minutes - every single change gets it's own commit) On Fri, Feb 6, 2009 at 1:51 PM, Kyle Sluder wrote: > On Fri, Feb 6, 2009 at 11:21 AM, elliott cable wrote: >> It's actually a comp

Re: Quicktime Movie View error

2009-02-07 Thread elliott cable
On Fri, Feb 6, 2009 at 11:05 PM, Graham Cox wrote: > > On 7 Feb 2009, at 7:00 pm, elliott cable wrote: > >> While the merging may be not perfect, it works 99% of the time - and >> that's more than enough. >> >> It works especially well if you commit as granularl

Reading MP3 data into a NSDocument using QTKit, -readFromData:, and QTDataReference

2009-02-09 Thread elliott cable
I'm sort of new to Cocoa, and C - as a learning project, I'm trying to write a very simple music/MP3 player. Currently, I'm stuck on getting MP3 data into the application and, well, playing it audibly. I've got a simple "Cocoa Document-based Application" template created, and have a simple UI that