On Mar 31, 2011, at 12:51 PM, Carlos Eduardo Mello
wrote:
> Isn't the document subclass the app's delegate by default in the
> document architecture?
Incidentally, your choice of words reflects the point of confusion. Classes
aren't delegates, objects are. If you'd written your question as "Is
Thank you all for the clarifications.
Now I see it didn't really make any sense...
Following Andy's recommendation, I wrote a class to be the app's
delegate and handle these calls.
It works fine now.
On Mar 31, 2011, at 1:55 PM, Andy Lee wrote:
No, and if you think about it, it couldn't be. I
On 31 Mar 2011, at 17:49, Carlos Eduardo Mello wrote:
> Isn't the document subclass the app's delegate by default in the document
> architecture?
No.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or modera
Which document or document type would you expect to speak for the app? Only
GIFs, JPEGs, RTFs, or should everyone have a say? What happens when there is NO
document? Who is the app's delegate in that case?
- Gary L. Wade (Sent from my iPhone)
On Mar 31, 2011, at 9:49 AM, Carlos Eduardo Mello
On Thu, Mar 31, 2011 at 12:49 PM, Carlos Eduardo Mello
wrote:
> Isn't the document subclass the app's delegate by default in the document
> architecture?
No, it isn't. The document's job is to handle per-document
responsibilities; the app delegate's job is to handle tasks that are
relevant for th
No, and if you think about it, it couldn't be. It's possible to launch an app
with no documents initially (as you are in fact trying to do) or to have
multiple documents open. The app is a singleton object that has exactly one
delegate, so the delegate can't be a document instance.
In your mai
Isn't the document subclass the app's delegate by default in the
document architecture?
On Mar 31, 2011, at 1:36 PM, Gary L. Wade wrote:
These should be in the app delegate.
- Gary L. Wade (Sent from my iPhone)
On Mar 31, 2011, at 9:25 AM, Carlos Eduardo Mello > wrote:
Hi everyone,
I've
Are you sure the window delegate is being set correctly and isn't nil?
Yes.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)list
These should be in the app delegate.
- Gary L. Wade (Sent from my iPhone)
On Mar 31, 2011, at 9:25 AM, Carlos Eduardo Mello
wrote:
> Hi everyone,
>
> I've implemented both methods bellow, but my document-based app still opens
> untitled windows at start-up and when reactivated from the dock.
On Mar 31, 2011, at 1:25 PM, Carlos Eduardo Mello wrote:
> Hi everyone,
>
> I've implemented both methods bellow, but my document-based app still opens
> untitled windows at start-up and when reactivated from the dock. The methods
> are placed in the window's delegate (MyDocument.m) but they n
Hi everyone,
I've implemented both methods bellow, but my document-based app still
opens untitled windows at start-up and when reactivated from the dock.
The methods are placed in the window's delegate (MyDocument.m) but
they never get called. Does anybody have an idea why this is happening
11 matches
Mail list logo