bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in save panel?


From: Philippe C.D. Robert
Subject: Bug in save panel?
Date: Sun, 3 Mar 2002 16:03:24 +0100

Hi,

I noticed that when I use a save panel multiple times, the layout gets screwed
up when using an accessory view whenever I open the panel more than once. I am
not sure if this is because of my code or not. You can reproduce it with
ProjectCenter ( ie. create many new projects ), the code is in PCMenuController
and should be pretty basic:

- (void)newProject:(id)sender
{
    NSSavePanel *sp;
    int          runResult;
    NSString    *dir = nil;

    ...

    sp = [NSSavePanel savePanel];

    [sp setTitle:@"Create new project..."];
    [sp setAccessoryView:projectTypeAccessaryView];

    ...

    runResult = [sp runModalForDirectory:dir file:@""];
    if (runResult == NSOKButton)
    {
        ....
    }
}

Any ideas?

cheers,

-Phil
-- 
Philippe C.D. Robert
Software Engineer
Silicon Graphics, Inc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]