[futurebasic] Re: [FB] Total items count for folder

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2013 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Thu, 27 Jun 2013 08:13:33 -0400
Same code, different need…I need to filter the files…but the dang thing doesn't like the variable itemUTI, and I'm getting one from sitting in this chair now.

How the heck can I get the dang things to 'cross talk'? And then be able to print things out for confirmation with: fn ConsolePrintCFString(()?

Local Fn FileFilter(filterType as short, itemURL as CFURLRef)
dim as short result
result = _false
NSString* itemUTI; // ID or whatever
[(NSURL *)itemURL getResourceValue:&itemUTI forKey:NSURLTypeIdentifierKey error:nil];
if fn UTTypeConformsTo( itemUTI, kUTTypeJPEG  ) then result = _true: exit fn
if result = _True then stop "Got JPEG"

end fn = result