Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple selection not taking in NSOpenPanel



This has really been bugging me... I cannot get the multiple
selection option to work in NSOpenPanel. It SEEMS so straight forward:
<code>
NSMutableArray *mytype = [NSMutableArray arrayWithObjects:
@"txt", @"rtf", @"RTF", @"TXT", nil];
[mytype removeLastObject];
[[NSOpenPanel openPanel] setAllowsMultipleSelection: YES];

[[NSOpenPanel openPanel] beginSheetForDirectory: nil file: nil
types: mytype
modalForWindow: myWindow modalDelegate:self
didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:)
contextInfo: nil];
</code>

What am I missing?
--
Matthew Weinstein
Associate Professor of Science Education
Kent State University

404D White Hall
KSU
Kent, OH 44242

330-672-0653

email@hidden
http://educ.kent.edu/~mweinste
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.