Re: Apps whitout nib
Re: Apps whitout nib
- Subject: Re: Apps whitout nib
- From: j o a r <email@hidden>
- Date: Wed, 18 Feb 2004 12:56:32 +0100
On 2004-02-18, at 12.45, Wezzy wrote:
>
> * Why do you set the "defer" parameter to "1" when it's really a BOOL?
>
i think that they are the same thing YES = 1 NO = 0. is This a wrong
>
idea?
This is just a matter of style - but I think style can be very
important. Your code needs to be able to communicate it's intent to the
reader. In this case YES/NO is much more clear than 1/0 - even though
the effect in the end will be the same.
>
> * Try to set "defer" to NO
>
i've tried but program crashes.
Most likely related to my comment about running the run loop.
>
> * Why do you set the button to be the content view of the window? Try
>
> not to do that (you can still set it to completely fill the content
>
> view of the window).
>
Well i do it only to write some few line of code. There are not any
>
special reason.
OK. My comment about that was that you can possibly / probably change
the appearance of the button by treating it like that.
>
> * You need to run the run loop at some point, else things will not
>
> work as they should. Read the documentation and the list archives!
>
i don't understand, what i have to start toghether with the run loop ?
Do you know what NSRunLoop is? If not, then you need to read
documentation and sample code and mailing list posts until you do. It's
a core functionality in a GUI application. Lot's of classes in Cocoa
depends on having a run loop present to function properly.
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.