newbie trouble with multiple nibs, menu's, runmodalforwindow and pasting
newbie trouble with multiple nibs, menu's, runmodalforwindow and pasting
- Subject: newbie trouble with multiple nibs, menu's, runmodalforwindow and pasting
- From: Jurjan Dijkstra <email@hidden>
- Date: Tue, 11 Jun 2002 15:18:58 +0200
first of all: sorry for crossposting..
i have this problem i can't seem to get rid of...
i'm just starting with cocoa (no no.. that's not my problem yet).
my application is sort of finished and i'm trying to clean it up
while at the same time implementing a registration window.
I heard that one should try to keep al the different windows in
different nib's, sooo i made a
third nib for my registration window, gave it a controller etc.
now i have two problems:
the first is how do i get this window to show up only at the first
time my app runs (or
whenever then preferences are thrown away).
at the moment i check the existence of one of my preference items
to decide which screen i
should show.
at the moment i do this at init time of my main controller.
(ooh yeah: i don't want to show my main window till the
registration process is finished..
that is why i use a runmodalforwindow in my registrationcontroller),.
now this sort of works, but crashes every time after i complete
the registration.. ,
my program doesn't return to the place where i called the
registration function,
but instead seems to execute from the top, sees the crucial
preferences there,
goes on to show the main window and crashes cause the rest of the
preferences haven't been
properly initiated (they would be if the program would run as i
think it should)..
secondly: i can't seem to be able to implement pasting (of a
serialnumber) in my
registrationwindow. i think this is because of the runmodalfor
window, cause my menu doesn't
show up either.. i have no idea where to look (or even what to ask).
what i would love is pointers to documentation (i'm still learning to
find the things i
need/want) not necessary full blown examplecode (although i won't
say no to it either.. i'm desperate), pointers to
does anybody here know what i'm trying to say/ask and have a solution??
if you need more information (codefragments?) just ask.
many thanks in advance
jurjan
_______________________________________________
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.