Re: Deciphering MDSchemaCopyMetaAttributesForAttribute()
Re: Deciphering MDSchemaCopyMetaAttributesForAttribute()
- Subject: Re: Deciphering MDSchemaCopyMetaAttributesForAttribute()
- From: Vince DeMarco <email@hidden>
- Date: Fri, 16 Dec 2005 08:48:52 -0800
The numbers correspond to the return values in CFGetType functions
For example
CFTypeID CFStringGetTypeID(void);
CFTypeID CFBooleanGetTypeID(void);
CFTypeID CFDateGetTypeID(void);
etc....
Don't hard code in 7,9 etc. into your programs.
Vince
On Dec 16, 2005, at 7:43 AM, Ryan Britton wrote:
When I did this, I was not able to find a reference of what the
numbers returned for the type meant so I kind of had to do it
through trial and error. Here are what I've come up with:
7 - String
9 - Boolean
10 - Numeric
11 - Date
On Dec 16, 2005, at 6:55 AM, Pierre Bernard wrote:
Hi!
The function MDSchemaCopyMetaAttributesForAttribute() is documented
to return a dictionary with the following keys:
const CFStringRef kMDAttributeName;
const CFStringRef kMDAttributeType;
const CFStringRef kMDAttributeMultiValued;
The kMDAttributeType leads to "A CFNumberRef or CFTypeId describing
the type of data returned as the value of the metadata attribute
key."
What shall I make of this?
My understanding is that if I run into a CFTypeId then I may use
CFCopyTypeIDDescription() to investigate further. Though I don't
know what to expect.
What if I get a CFNumberRef? What does it mean?
TIA
Pierre Bernard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden