|
Re: How to get Extended File Info
No, I’ve used it with MP3 and AAC and AIFF; I’m pretty sure it supports every format there’s a system codec for (i.e. most audio formats except Ogg and FLAC, but you can get 3rd party components
No, I’ve used it with MP3 and AAC and AIFF; I’m pretty sure it supports every format there’s a system codec for (i.e. most audio formats except Ogg and FLAC, but you can get 3rd party components
|
By
Jens Alfke
·
#987
·
|
|
Re: How to get Extended File Info
Rumor (i.e. Stack Overflow) has it that AVFoundation will only work with AAC, but I have not confirmed that myself.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
Rumor (i.e. Stack Overflow) has it that AVFoundation will only work with AAC, but I have not confirmed that myself.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
|
By
Keary Suska
·
#986
·
|
|
Re: How to get Extended File Info
AVFoundation has a higher-level OOP API for this. Look for methods for accessing metadata, and constants defining the various metadata types like Title, Artist, etc.
—Jens
AVFoundation has a higher-level OOP API for this. Look for methods for accessing metadata, and constants defining the various metadata types like Title, Artist, etc.
—Jens
|
By
Jens Alfke
·
#985
·
|
|
Re: How to get Extended File Info
I believe there is a function where you can pull all available attributes/properties. You can look at that dict and see if it contains what you are looking for.
Keary Suska
Esoteritech,
I believe there is a function where you can pull all available attributes/properties. You can look at that dict and see if it contains what you are looking for.
Keary Suska
Esoteritech,
|
By
Keary Suska
·
#984
·
|
|
Re: How to get Extended File Info
In Obj-C (getting width and height of an image in pixels):
NSMetadataItem *mdItem = [[NSMetadataItem alloc] initWithURL:url];
NSDictionary *dict = [mdItem
In Obj-C (getting width and height of an image in pixels):
NSMetadataItem *mdItem = [[NSMetadataItem alloc] initWithURL:url];
NSDictionary *dict = [mdItem
|
By
Jon Gotow
·
#983
·
|
|
Re: How to get Extended File Info
Hi,
I’m looking at the Audio Toolbox, I assume you mean the AudioOpenFile, AudioFileGetProperty and AudioCloseFile C functions? If so, then I can’t see how to get the fields I mentioned? In the
Hi,
I’m looking at the Audio Toolbox, I assume you mean the AudioOpenFile, AudioFileGetProperty and AudioCloseFile C functions? If so, then I can’t see how to get the fields I mentioned? In the
|
By
Dave
·
#982
·
|
|
Re: NSFIleManager enumeratorAtPath problem
Hi,
Yes! It was sandboxing I turned it off and all works ok now!
Thanks
Dave
Hi,
Yes! It was sandboxing I turned it off and all works ok now!
Thanks
Dave
|
By
Dave
·
#981
·
|
|
Re: NSFIleManager enumeratorAtPath problem
Wait, is security getting in the way? Is the app sandboxed? If so, you can't just throw a folder at it and expect it to work. What if you choose the folder via NSOpenPanel or add Desktop as one of the
Wait, is security getting in the way? Is the app sandboxed? If so, you can't just throw a folder at it and expect it to work. What if you choose the folder via NSOpenPanel or add Desktop as one of the
|
By
Steve Mills
·
#980
·
|
|
Re: NSFIleManager enumeratorAtPath problem
I’ve already tried it, same result.
Can’t think of anything else that could be going wrong!
I’ve already tried it, same result.
Can’t think of anything else that could be going wrong!
|
By
Dave
·
#979
·
|
|
Re: How to get Extended File Info
AudioToolbox, especially Audio File Services (don’t have links but should be able to search docs easily), appear to have this capability.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for
AudioToolbox, especially Audio File Services (don’t have links but should be able to search docs easily), appear to have this capability.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for
|
By
Keary Suska
·
#978
·
|
|
Re: NSFIleManager enumeratorAtPath problem
Just for kicks, what if you remove the trailing '/'?
--
Steve Mills
Drummer, Mac geek
Just for kicks, what if you remove the trailing '/'?
--
Steve Mills
Drummer, Mac geek
|
By
Steve Mills
·
#977
·
|
|
Re: How to get Extended File Info
Spotlight APIs can supply all that.
--
Steve Mills
Drummer, Mac geek
Spotlight APIs can supply all that.
--
Steve Mills
Drummer, Mac geek
|
By
Steve Mills
·
#976
·
|
|
Re: NSFIleManager enumeratorAtPath problem
Hi,
MacOS 10.13.6
Deployment Target 10.13
Yes, they are real folders, here is one that doesn’t work:
/Users/develop/Desktop/Accounts/
This has a number of .xls files and a couple of .pdf
Hi,
MacOS 10.13.6
Deployment Target 10.13
Yes, they are real folders, here is one that doesn’t work:
/Users/develop/Desktop/Accounts/
This has a number of .xls files and a couple of .pdf
|
By
Dave
·
#975
·
|
|
How to get Extended File Info
Hi,
Looking at the Finder “Get Info” window, for instance for an mp3 file, it displays under the “More Info” tab, the Title, Authors, etc.
How can I get this information
Hi,
Looking at the Finder “Get Info” window, for instance for an mp3 file, it displays under the “More Info” tab, the Title, Authors, etc.
How can I get this information
|
By
Dave
·
#974
·
|
|
Re: NSFIleManager enumeratorAtPath problem
Are the folders actual folders? Or symlinks?
What OS, SDK, etc?
Sandor
Are the folders actual folders? Or symlinks?
What OS, SDK, etc?
Sandor
|
By
Sandor Szatmari
·
#973
·
|
|
Re: NSFIleManager enumeratorAtPath problem
As I said,
myExistsFlag and myFolderFlag are set to YES.
So the folder exists, I copied and pasted the Path from the finder. Also I've tried it on a number of different folders and it still
As I said,
myExistsFlag and myFolderFlag are set to YES.
So the folder exists, I copied and pasted the Path from the finder. Also I've tried it on a number of different folders and it still
|
By
Dave
·
#972
·
|
|
Re: NSFIleManager enumeratorAtPath problem
In the code you posted, there was no check for the value of myFolderFlag
on return from fileExistsAtPath:, so are you sure it's a directory? Doc
for enumeratorAtPath: says:
"Return Value
An
In the code you posted, there was no check for the value of myFolderFlag
on return from fileExistsAtPath:, so are you sure it's a directory? Doc
for enumeratorAtPath: says:
"Return Value
An
|
By
Sak Wathanasin
·
#971
·
|
|
NSFIleManager enumeratorAtPath problem
Hi,
I can’t for the life of see what is wrong with the following method. I’m basically doing the same as in the NSFileManager but I can’t seem to get it to work.
The enumeratorAtPath: methods
Hi,
I can’t for the life of see what is wrong with the following method. I’m basically doing the same as in the NSFileManager but I can’t seem to get it to work.
The enumeratorAtPath: methods
|
By
Dave
·
#970
·
|
|
Re: Dealing with unicodes in strings
OK, makes sense. A simple NSString category using NSScanner internally makes it easy enough.
Thanks for the help,
—Graham
OK, makes sense. A simple NSString category using NSScanner internally makes it easy enough.
Thanks for the help,
—Graham
|
By
Graham Cox
·
#969
·
|
|
Re: Dealing with unicodes in strings
Those are JavaScript escape sequences. If you’re reading raw JS string literals out of the page, you need to decode all the escapes, which are like the C ones plus \uxxxx.
This isn’t anything to
Those are JavaScript escape sequences. If you’re reading raw JS string literals out of the page, you need to decode all the escapes, which are like the C ones plus \uxxxx.
This isn’t anything to
|
By
Jens Alfke
·
#968
·
|