• 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
Where did my event, part I
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where did my event, part I


  • Subject: Where did my event, part I
  • From: Craig Hopson <email@hidden>
  • Date: Mon, 12 Sep 2005 10:04:51 -0600

I tried to send this on Friday, but alas, it was over the size limit.  So, I am posting in installments; this is the first of four...

In our Cocoa app we create custom tracks in a music sequence and populate them with our own events.  At runtime this works quite well.  However, now I'm trying to implement Save/Open.  As you can see from the log output below, the basic track information persists (MIDI track name event)  but the custom UserEvents do not.  Is this a bug or am I missing something in my code?  

Here are the Save & Open functions:

- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
    [ self buildSequence ];

    CAShow( _curSequence );        // for debugging

  

    CFDataRef dataRef;
    if( MusicSequenceSaveSMFData( _curSequence, &dataRef, 480 ) != noErr )
        [ NSException raise:@"Document::dataOfType" format:@"Cannot save SMF data." ];
            
    return (NSData *)dataRef;
}


***************************************************

Craig Hopson, Managing Partner

Red Rock Software, Inc.

10 West Broadway, Suite 850

Salt Lake City, UT  84101

office: 801.322.4322  x103

cell: 801.949.3526

http://www.redrocksw.com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Where did my event, part I
      • From: Doug Wyatt <email@hidden>
    • Re: Where did my event, part I
      • From: William Stewart <email@hidden>
    • Re: Where did my event, part I
      • From: Doug Wyatt <email@hidden>
    • Re: Where did my event, part I
      • From: James McCartney <email@hidden>
  • Prev by Date: Where did my event, part II
  • Next by Date: Where did my event, part III
  • Previous by thread: Where did my event, part II
  • Next by thread: Re: Where did my event, part I
  • Index(es):
    • Date
    • Thread