A
download _MKNameTable.h
Language: ObjectiveC
Copyright: Copyright 1988-1992, NeXT Inc. All rights reserved. */
LOC: 31
Project Info
The MusicKit(musickit)
Server: SourceForge
Type: cvs
...sicKit\Frameworks\MusicKit\
   _ArielQP.h
   _DSPMK.h
   _error.h
   _midi.h
   _MKAppProxy.h
   _MKAppProxy.m
   _MKNameTable.h
   _MKNameTable.m
   _MKParameter.h
   _MTCHelper.h
   _MTCHelper.m
   _musickit.h
   _noteRecorder.h
   _OrchloopbeginUG.h
   _OrchloopbeginUG.m
   _ParName.h
   _ParName.m
   _scorefile.h
   _ScorefileVar.h
   _ScorefileVar.m
   _SharedSynthInfo.h
   _SharedSynthInfo.m
   _synthElementMethods.m
   _time.h
   ArielQP.h
   ArielQP.m
   classFuncs.h
   ConductorPrivate.h
   dsp_types.h
   DSPSerialPortDevice.h
   dspwrap.h
   EnvelopePrivate.h
   equalTempered.m
   errors.h
   fastFFT.c
   fastFFT.h
   GNUmakefile.postamble
   GNUmakefile.preamble.in
   InstrumentPrivate.h
   keynums.h
   libMusicKit.def
   Localized.strings
   make.sh
   Makefile.postamble
   Makefile.preamble
   midi_spec.h
   midifile.h
   midifile.m
   MidiPrivate.h
   midiTranslation.h
   MKConductor.h
   MKConductor.m
   MKConductorDelegate.h
   MKDeviceStatus.h
   MKEnvelope.h
   MKEnvelope.m
   MKFilePerformer.h
   MKFilePerformer.m
   MKFileWriter.h
   MKFileWriter.m
   MKInstrument.h
   MKInstrument.m
   MKMidi.h
   MKMidi.m
   MKMixerInstrument.h
   MKMixerInstrument.m
   MKMTCPerformer.h
   MKMTCPerformer.m
   MKNote.h
   MKNoteFilter.h
   MKNoteFilter.m
   MKNoteReceiver.h
   MKNoteReceiver.m
   MKNoteSender.h
   MKNoteSender.m
   MKOrchestra.h
   MKPart.m
   MKPartials.h
   MKPartials.m
   ...tialsWaveshapingTable.m
   MKPartPerformer.h
   MKPartPerformer.m
   MKPartRecorder.h
   MKPartRecorder.m
   MKPatch.h
   MKPatch.m
   MKPatchConnection.h
   MKPatchConnection.m
   MKPatchEntry.h
   MKPatchEntry.m
   MKPatchTemplate.h
   MKPatchTemplate.m
   MKPerformer.h
   MKPerformer.m
   MKPerformerDelegate.h
   MKPlugin.h
   MKSamplerInstrument.h
   MKSamplerInstrument.m
   MKSamples.h
   MKScore.h
   MKScore.m
   MKScorefileObject.h
   MKScorefilePerformer.h
   MKScorefilePerformer.m
   MKScorefileWriter.m
   MKScorePerformer.h
   MKScorePerformer.m
   MKScoreRecorder.h
   MKScoreRecorder.m
   MKSynthData.h
   MKSynthData.m
   MKSynthInstrument.h
   MKSynthPatch.h
   MKTimbre.h
   MKTimbre.m
   MKTuningSystem.h
   MKTuningSystem.m
   MKUnitGenerator.h
   MKUnitGenerator.m
   MKWaveTable.h
   MKWaveTable.m
   mtcMidi.m
   mtcMidiPrivate.m
   MusicKit-Info.plist
   MusicKit.h
   MusicKitConfig.h.in
   names.h
   noDVal.h
   noteDispatcherMethods.m
   NotePrivate.h
   noteRecorderCFuncs.m
   noteRecorderMethods.m
   orch.h
   OrchestraPrivate.h
   OrchloopbeginUG.h
   OrchloopbeginUG.m
   orchloopbeginUGInclude.m
   params.h
   parNames.m
   partialsDBInclude.m
   PartialsPrivate.h
   PartPerformerPrivate.h
   PartPrivate.h
   PartRecorderPrivate.h
   PatchTemplatePrivate.h
   PB.project
   PerformerPrivate.h
   pitches.h
   platform.make
   ...efilePerformerPrivate.h
   ScorePerformerPrivate.h
   ScorePrivate.h
   ScoreRecorderPrivate.h
   SynthDataPrivate.h
   synthElementCFuncs.m
   synthElementMethods.m
   SynthInstrumentPrivate.h
   SynthPatchList.h
   SynthPatchList.m
   SynthPatchPrivate.h
   timetagInclude.m
   timeunits.h
   tokenNames.m
   tokens.h
   trigonometry.c
   trigonometry.h
   TuningSystemPrivate.h
   UnitGeneratorPrivate.h
   win32-def.top
   writeBinary.m
   writeMidi.m
   writeScore.m

/* Copyright 1988-1992, NeXT Inc.  All rights reserved. */
/*
  $Id: _MKNameTable.h,v 1.3 2002/04/15 14:28:15 sbrandon Exp $
  Defined In: The MusicKit
*/
/*
Modification history:

  $Log: _MKNameTable.h,v $
  Revision 1.3  2002/04/15 14:28:15  sbrandon
  - changed symbols and types NSDictionaries to NSMapTables, because NSMapTables
    do not have to retain their objects (and I have set them up not to do so).
    This had been causing dealloc loops for objects held in the main dict
    and trying to remove themselves in their -dealloc methods.

  Revision 1.2  1999/07/29 01:25:59  leigh
  Added Win32 compatibility, CVS logs, SBs changes

  09/22/89/daj - Moved _MKNameTable functions to _MKNameTable.h. Added global
                 defines of bits.
  10/06/89/daj - Changed to use hashtable.h version of table.
  01/31/90/daj - Added import of hashtable.h
  ??/??/98/sb  - OpenStep conversion
  04/21/99/lms - overhaul for NSDictionary operation for portability and clarity
*/
#ifndef __MK__MKNameTable_H___
#define __MK__MKNameTable_H___

#define _MK_NOFREESTRINGBIT 0x8000 /* Set if string is never to be freed */
#define _MK_AUTOIMPORTBIT 0x4000 /* Set if all LOCAL tables should import */
#define _MK_BACKHASHBIT 0x2000  /* Set if object-to-name lookup is required */

@interface _MKNameTable: NSObject
{
    NSMapTable *symbols;
    NSMapTable *types;
}

- (id) initWithCapacity: (unsigned) capacity;
- (void) dealloc;

@end

/* Private name table functions */
extern void _MKNameGlobal(NSString * name,id dataObj,unsigned short type, BOOL autoImport,BOOL copyIt);
extern id _MKGetNamedGlobal(NSString * name,unsigned short *type);
extern NSString *_MKGetGlobalName(id object);

/* Very private name table functions */
extern NSString 	*_MKUniqueName(NSString *name,_MKNameTable *table,id anObject,id *hashObj);
extern _MKNameTable 	*_MKNewScorefileParseTable(void);
extern id 		_MKGetListElementWithName(id aList,char *aName);
extern _MKNameTable 	*_MKNameTableAddName(_MKNameTable *table,NSString *theName,
				      id owner, id object,
				      unsigned short type,BOOL copyIt);
extern id 		_MKNameTableGetFirstObjectForName(_MKNameTable *table,NSString *theName);
extern id 		_MKNameTableGetObjectForName(_MKNameTable *table,NSString *theName,id theOwner,
					unsigned short *typeP);
extern NSString 	*_MKNameTableGetObjectName(_MKNameTable *table,id theObject,id *theOwner);
extern _MKNameTable 	*_MKNameTableRemoveName(_MKNameTable *table,NSString *theName,id theOwner);
extern _MKNameTable 	*_MKNameTableRemoveObject(_MKNameTable *table,id theObject);
extern void 		_MKFreeScorefileTable(_MKNameTable *aTable);
extern NSString		*_MKSymbolize(NSString *sym,BOOL *wasChanged);

#endif

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us