Тег ‘Mac OS X’:

Tutorial: Drag and Drop file on NSImageView

Step by step for starter developers…
1. Create a project in xCode with name “DragAndDrop” or any else…2. Add an element “NSImageView” on main view in the MainMenu.xib

Теги: , , , , , , ,

Комментарии отсутствуют

How to launch AppStore application with request?

If you will need launch AppStore application with search request – use this example
NSString *str = @"itms-apps://ax.search.itunes.apple.com";
    str = [NSString stringWithFormat:@"%@/WebObjects/MZSearch.woa/wa/search?media=software&term=", str];
    str = [NSString stringWithFormat:@"%@3d4medical", str];
   
    [[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];

Теги: , , , , , ,

Комментарии отсутствуют

Resize and Mask an Image

Make image with a mask!

Source:
- (UIImage*) maskImage:(UIImage *)image  {
   
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
   
    UIImage *maskImage = [UIImage imageNamed:@"mask.png"];
    CGImageRef maskImageRef = [maskImage CGImage];
   
    // create a bitmap graphics context the size of the image
    CGContextRef mainViewContentContext = CGBitmapContextCreate (NULL, maskImage.size.width, maskImage.size.height, 8, 0, [...]

Теги: , , , , , , , ,

Комментарии отсутствуют

Setup Python, MySQL, MySQL-python and SVN on MAC OS X 10.6

Mac Os X + Python 2.6.1+ PIL + apache2.2 +mod_python + MySQL + MySQLdb +php5+ phpMyAdmin + SVN server +WebSVN
OS: Mac OS X 10.6.1 Snow Leopard
XCode:The latest Xcode Tools
Python: Python 2.6.1 64-bit (Snow Leopard default)
Projects will be located in ~/Sites, so change permissions:
add read permission for everyone on ~/Sites
Setup django
[...]

Теги: , , , , ,

Комментарии отсутствуют

WWDC & Mac OS X Snow Leopard

Mac OS X Snow Leopard 64 bit!!!!
COOL!

Теги: , , ,

Комментарии отсутствуют