вторник, 4 октября 2011 г.

ePic for Mac 1.3 (release MAS)




What's New in Version 1.3


* Full support for OS X Lion, including full-screen mode
* Improved support multi-touch gestures to Magic Trackpad and Magic Mouse
* Support Aperture libraries
* Support Picasa web albums
* Support iPhoto albums
* New mode for 3D presentation (Breath presentation)
* New SlideShow effects ( two nice effect's)
* Ability to hide the control panel
* Function detailed view your photos in a Slide Show
* Many minor fixes

Download via Mac App Store (itunes link)
Donwload via Site (site link)

понедельник, 5 сентября 2011 г.

Manually set the full-screen mode at startup application in Lion 10.7

  1. ................  
  2.  
  3. #import <CoreServices/CoreServices.h>  
  4.   
  5. @implementation NSApplication (SystemVersion)  
  6.   
  7. + (BOOL) usingLionOSX  
  8. {  
  9.     SInt32 minorVersion = 0;  
  10.     SInt32 majorVersion = 0;  
  11.       
  12.     Gestalt(gestaltSystemVersionMajor, &majorVersion);  
  13.     Gestalt(gestaltSystemVersionMinor, &minorVersion);  
  14.       
  15.     return majorVersion == 10 && minorVersion >= 7;      
  16. }  
  17.   
  18. @end  
  19.   
  20. ................  
  21.   
  22. IBOutlet NSWindow*  _mainWindow;    //  in h-file  
  23.   
  24. ................  
  25.   
  26. - (void) applicationDidFinishLaunching : (NSNotification*) notification  
  27. {         
  28. #if (defined(MAC_OS_X_VERSION_10_7)) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7  
  29.       
  30.     if ( [ NSApplication usingLionOSX ] )  
  31.     {  
  32.         [ [ NSApplication sharedApplication ] setPresentationOptions : NSApplicationPresentationAutoHideMenuBar | NSApplicationPresentationAutoHideDock ];  
  33.           
  34.         NSWindowCollectionBehavior collection = [ _mainWindow collectionBehavior ];  
  35.         collection |= NSWindowCollectionBehaviorFullScreenPrimary;  
  36.          
  37.         [ _mainWindow setCollectionBehavior : collection ];  
  38.         [ _mainWindow toggleFullScreen : self ];  
  39.     }  
  40.      
  41. #endif  
  42. }  

среда, 20 июля 2011 г.

NSImage Exif (metadata)

Get metadata from NSImage

  1. + (NSDictionary*) exif : (NSString*) file  
  2. {  
  3.     NSDictionary* dic   =   nil;  
  4.       
  5.     NSURL* url          =   [ NSURL fileURLWithPath : file ];  
  6.       
  7.     if ( url )  
  8.     {  
  9.         CGImageSourceRef source = CGImageSourceCreateWithURL ( (CFURLRef) url, NULL);  
  10.           
  11.         if ( NULL == source )   
  12.         {  
  13. #ifdef _DEBUG  
  14.             CGImageSourceStatus status = CGImageSourceGetStatus ( source );  
  15.             NSLog ( @"Error: file name : %@ - Status: %d", file, status );  
  16. #endif            
  17.         }  
  18.         else  
  19.         {             
  20.             CFDictionaryRef metadataRef = 
  21.             CGImageSourceCopyPropertiesAtIndex ( source, 0, NULL );  
  22.             if ( metadataRef )   
  23.             {  
  24.                 NSDictionary* immutableMetadata = (NSDictionary *)metadataRef;  
  25.                 if ( immutableMetadata )  
  26.                 {                 
  27.                     dic =   
  28.                 [ NSDictionary dictionaryWithDictionary : (NSDictionary *)metadataRef ];  
  29.                 }                                          
  30.                   
  31.                 CFRelease ( metadataRef );  
  32.             }  
  33.               
  34.             CFRelease(source);  
  35.             source = nil;  
  36.         }  
  37.     }  
  38.       
  39.     return dic;  
  40. }  

.........................................

  1. NSDictionary* dic = [ User_ImageLoader exif : filename ];  
  2. if ( dic )  
  3. {  
  4.     NSString* s     =   [ dic valueForKey : @"Orientation" ];  
  5.       
  6.     NSLog(@"Image : %@ - orentation : %d", filename, [ s intValue ] );  
  7. }  

LOG


2011-07-21 00:09:44.579 test.app [12105:7f03] Image : /Users/alexey/Desktop/Works/EXIF Orientation Sample Images/7.jpg - orentation : 7
2011-07-21 00:09:45.908 test.app [12105:7f03] Image : /Users/alexey/Desktop/Works/EXIF Orientation Sample Images/8.jpg - orentation : 8

Create CGImageRef with EXIF Orientation

воскресенье, 19 июня 2011 г.

NSMutableDictionary to NSUserDefaults

  1. NSMutableDictionary* dic = [ [ NSMutableDictionary alloc ] initWithObjectsAndKeys :   
  2.                             @"500", @"MaxLoadedImages",   
  3.                             @"10",  @"RequestMaxImages",  
  4.                             nil ];   
  5. if ( dic )  
  6. {         
  7.     [ [ NSUserDefaults standardUserDefaults ] setObject : dic forKey : @"flickr.com" ];       
  8.     [ dic release ];  
  9. }  

.............................

  1. NSDictionary* settings          =   [ [ NSUserDefaults standardUserDefaults ] objectForKey : @"flickr.com" ];  
  2. NSInteger maxLoadedImages       =   [ [ settings objectForKey : @"MaxLoadedImages" ] integerValue ];  
  3. NSInteger requestMaxImages      =   [ [ settings objectForKey : @"RequestMaxImages" ] integerValue ];  
  4.   
  5. NSLog(@"settings : %@", settings);  

LOG

2011-06-19 14:07:34.600 test.app[3464:6b03] settings : {
MaxLoadedImages = 500;
RequestMaxImages = 10;
}

пятница, 13 мая 2011 г.

ePic for Mac v1.1


What's New in Version 1.1

* Smoothing the edges of the pictures
* Improved stability of the application
* Accelerate work wih service Flickr (fixed bug for search by keyword)
* Fixed minor bugs in interface (fixed for old system's)
* Impover manage your viewing with the mouse, keyboard (nice shortcuts)

Download via Mac App Store (itunes link)
Donwload via Site (site link)

суббота, 9 апреля 2011 г.

3d Slide Show (ePic)



ePic 3d slide show with fantastic physics.

Features

- Show photo from the flickr.com, iPhoto albums, or local folders.
- Physics-based filmstrip display
- Classic slide show mode with more effects
- Turn the app into a screen saver mode after a certain amount of inactivity
- Unique concept with physics

Download via Mac App Store