Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to open OpenPanel in mac os

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 877
    Comment on it
    static NSArray *openFiles()
    {
        bookmarkMode = 0;
       NSOpenPanel *panel;
    
        NSMutableArray *extension=[[NSMutableArray alloc]init ];
        [extension addObject:[[NSUserDefaults standardUserDefaults]objectForKey:@"ImageExtension" ] ];
    
        panel = [NSOpenPanel openPanel];
        [panel setFloatingPanel:YES];
        [panel setCanChooseDirectories:YES];
        [panel setAllowsMultipleSelection:YES];
        [panel setCanChooseFiles:YES];
        NSInteger i = [panel runModal];
        if (i == NSOKButton)
        {
            return [panel URLs];
        }
        return nil;
    }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: