Skip navigation.
 
mlRe: beginsheetfordirectory not working in 10.2.1?
FROM : Robert Cerny
DATE : Mon Oct 07 23:23:01 2002

Oh no,
it didn't help. Is the code working for all others properly?

Robert

On Monday, Oct 7, 2002, at 22:00 Europe/Prague, Ryan Stevens wrote:

> Try:
> sheetDidEnd:returnCode:contextInfo:
>
> Instead of:
> openPanelDidEnd:returnCode:contextInfo:
>
>
> I'm not sure if that will make a difference but I'm remembering when I
> had some trouble with NSOpenPanel. I'm wondering if that was the
> problem...
>
> HTH!
>
> On Monday, October 7, 2002, at 10:24  AM, Robert Cerny wrote:
>

>> Hi,
>> I use the very basic implementation of NSOpenPanel:
>>     NSOpenPanel *openPanel = [NSOpenPanel openPanel];
>>     
>>     [openPanel beginSheetForDirectory:NSHomeDirectory()
>>                                  file:nil
>>                                 types:[NSArray arrayWithObjects: @".pfb", nil]
>>                       modalForWindow:[self window]
>>                         modalDelegate:self
>>                      
>> didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:)
>>                           contextInfo:NULL];
>> The problem - after displaying the sheet, it moves its selection to
>> NSHomeDirectory(). It looses some icons in the browser and on every
>> click response to console with:
>> *** -[NSCFArray objectAtIndex:]: index (3) beyond bounds (0)
>>
>> Anybody knows what's wrong?
>>
>> Thanks
>> Robert
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>



Related mailsAuthorDate
mlbeginsheetfordirectory not working in 10.2.1? Robert Cerny Oct 7, 10:25
mlRe: beginsheetfordirectory not working in 10.2.1? Ryan Stevens Oct 7, 13:01
mlRe: beginsheetfordirectory not working in 10.2.1? Robert Cerny Oct 7, 23:23
mlRe: beginsheetfordirectory not working in 10.2.1? Dustin Sallings Oct 8, 00:30
mlRe: beginsheetfordirectory not working in 10.2.1? Robert Cerny Oct 8, 01:43