problems with NSOpenPanel (black rectangles)
problems with NSOpenPanel (black rectangles)
- Subject: problems with NSOpenPanel (black rectangles)
- From: Andrew Bush <email@hidden>
- Date: Sat, 1 Oct 2005 11:07:00 +1200
Hi all,
Im having some problems with NSOpenPanel, when I use it to select files
its displaying large black rectangles when the user clicks on folders
in the columns...ie, you click on a folder, the current column flashes
a large black rectangle and then displays the next column to the right
as expected.
this is on 10.3, I have reports that its far worse again on 10.4
Also, in a vaguely related note, Im compiling my app on 10.3, and it
appears to run fine on 10.4, *except* I have reports that radiobuttons
and checkboxes in my prefs window are black rectangles in 10.4 under
many circumstances...click on one and all the rest black out their
entire frame and various other things...is this an expected sideproduct
of not compiling on 10.4? or is there something else happening here?
...I was actually surprised it ran at all on 10.4, I had an idea that
you specifically needed to recompile for different versions of os
x...is that totally wrong?
Here is the code Im using for NSOpenPanel.
NSOpenPanel *op;
int result;
NSString* tempPath=nil;
op = [NSOpenPanel openPanel];
[op setCanChooseFiles:NO];
[op setAllowsMultipleSelection:NO];
[op setCanChooseDirectories:YES];
result = [op runModalForDirectory:NSHomeDirectory()
file:nil types:nil];
if (result == NSOKButton)
{
tempPath=[[op filename] retain];
}
return tempPath;
Thanks for any help.
Yours cheerfully,
Andrew Bush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden