Hey, I am scratching my head solving this. I have a QTMovie object and I am using the Method 'movieAttributes' to get the Attributes of the object. It returns an NSDictionary and it NSLogs just fine.
The returned NSDictionary is holding NSStrings and I am interested in QTMovieCurrentSizeAttribute. When I NSLog the Dict it prints this
I need to convert this NSString to an NSSize struct. It says it is NSSize.
I know this wont work since it is an NSString, but how do I convert a String to a struct?
Is there an easier way to convert it besides spiting up the string?
The returned NSDictionary is holding NSStrings and I am interested in QTMovieCurrentSizeAttribute. When I NSLog the Dict it prints this
QTMovieCurrentSizeAttribute = "NSSize: {1920, 1080}";
I need to convert this NSString to an NSSize struct. It says it is NSSize.
I know this wont work since it is an NSString, but how do I convert a String to a struct?
Code:
NSSize frameSize = [qtDict objectForKey:@"QTMovieCurrentSizeAttribute"];
Is there an easier way to convert it besides spiting up the string?