Re: Some basic questions...
Re: Some basic questions...
- Subject: Re: Some basic questions...
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 6 Jul 2001 13:56:18 +0200
On vendredi, juillet 6, 2001, at 01:52 AM, Giovanni A. D. wrote:
Hello,
someone of us can help me about one or more of this mine "cocoa black
holes" ? :)
- set the top,left,width and height of a window
[window setFrameOrigin:(NSPoint)]
[window setContentSize:(NSSize)]
- use dinamically a outlineview (i hope to remember right.. hmm.. a
listbox in few words)
Look at the DragNDropOutlineView sample code in
/Developer/Examples/AppKit
- convert a integer to a string and vice versa :)
integer=[string intValue];
string=[NSString stringWithFormat:@"%d",integer];
or
string =[[NSNumber numberWithInt:integet] stringValue];
- using an NSOpenPanel load in a listbox the list of the files of one
directory
Get the directory path, use the NSFileManager to get a enumerator for
the directory and get the complete array from the enumerator.
- using an NSOpenPanel load in a listbox the list of only the visible
files of one directory
- using an NSOpenPanel load in a listbox the list of only the invisible
files of one directory
- rename the file corresponding to the listbox item when it changes
- copy an item of a listbox to another listbox by double clicking on
it ..
I won't answer to these ones since I'm not going to write the
application for you :)