Send Cocoa-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."
Today's Topics:
1. performSelector and subclassing (Koen van der Drift)
2. Debugging an input manager? (Sebastien Boisvert)
3. Re: Execute On-Load (Colin O'Connor)
4. Re: performSelector and subclassing (Damien Bobillot)
5. Re: Debugging an input manager? (Adam R. Maxwell)
6. Re: performSelector and subclassing (Koen van der Drift)
----------------------------------------------------------------------
Message: 1
Date: Sun, 14 Nov 2004 14:26:56 -0500
From: Koen van der Drift <email@hidden>
Subject: performSelector and subclassing
To: cocoa-dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Hi,
In the subclasses I have this line:
temp = [MySubclass performSelector: NSSelectorFromString(
myRef
)];
I would like to move that line up to the super class. What happens now
is that performSelector is called with MySuper, instead of MySubclass
(which is what I want to happen).
I tried:
temp = [[self class] performSelector: NSSelectorFromString(
myRef )];
but got this warning from the compiler: `Class' may not respond to
`+performSelector:'
Is there a way to accomplish this?
thanks,
- Koen.
------------------------------
Message: 2
Date: Sun, 14 Nov 2004 11:34:18 -0800 (PST)
From: Sebastien Boisvert <email@hidden>
Subject: Debugging an input manager?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
Is there a way/trick to debugging an input manager?
I've looked around and fount nothing on the subject...
Is the only way to create a bare-bones host app and
"simulate" hard-code the "input manager" inside it?
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
------------------------------
Message: 3
Date: Sun, 14 Nov 2004 14:35:25 -0500
From: "Colin O'Connor" <email@hidden>
Subject: Re: Execute On-Load
To: <email@hidden>
Message-ID: <BDBD1DAD.7B83%email@hidden>
Content-Type: text/plain; charset="US-ASCII"
You can implement the awakeFromNib: method, which is automatically
called
when the nib is loaded. Or you can implement the delegate method
applicationDidFinishLaunching:. Check out the cocoa documentation for
those
methods.
Colin
On 11/14/04 1:25 PM, "Chris Flanigan" <email@hidden>
wrote:
I am currently writing an application that has 8 WebView objects. I
want each to get a specific image upon loading of the program.
I know how to get the WebView object to display the image if the URL
is in a textbox, and you press Enter.. and so on. What I'm wondering,
is how I'd automatically have the WebView object load those images
when the application is executed.
Neither of my Cocoa books cover this. Google has been no help...
Thanks in advance!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
------------------------------
Message: 4
Date: Sun, 14 Nov 2004 20:39:57 +0100
From: Damien Bobillot <email@hidden>
Subject: Re: performSelector and subclassing
To: Koen van der Drift <email@hidden>
Cc: cocoa-dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Le 14 nov. 04, à 20:26, Koen van der Drift a écrit :
In the subclasses I have this line:
temp = [MySubclass performSelector: NSSelectorFromString(
myRef )];
MySubclass is a class (type Class) or an object (type id) ?
I think it's an object, because a class did not respond to
"+performSelector:" (see NSObject doc). However in this case, it
should
work and using [self class] is not appropriated.
I would like to move that line up to the super class. What happens
now
is that performSelector is called with MySuper, instead of MySubclass
(which is what I want to happen).
I tried:
temp = [[self class] performSelector: NSSelectorFromString(
myRef )];
but got this warning from the compiler: `Class' may not respond to
`+performSelector:'
--
Damien Bobillot
------------------------------
Message: 5
Date: Sun, 14 Nov 2004 11:54:10 -0800
From: "Adam R. Maxwell" <email@hidden>
Subject: Re: Debugging an input manager?
To: Sebastien Boisvert <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Nov 14, 2004, at 11:34, Sebastien Boisvert wrote:
Is there a way/trick to debugging an input manager?
I've looked around and fount nothing on the subject...
Is the only way to create a bare-bones host app and
"simulate" hard-code the "input manager" inside it?
Set up a custom executable in your input manager project (assuming
that
you use Xcode; it's the last item on the Project menu). I usually use
TextEdit for this, but anything that loads your input manager bundle
should work.
hth,
Adam
------------------------------
Message: 6
Date: Sun, 14 Nov 2004 14:54:40 -0500
From: Koen van der Drift <email@hidden>
Subject: Re: performSelector and subclassing
To: cocoa-dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On Nov 14, 2004, at 2:39 PM, Damien Bobillot wrote:
In the subclasses I have this line:
temp = [MySubclass performSelector: NSSelectorFromString(
myRef )];
MySubclass is a class (type Class) or an object (type id) ?
I think it's an object, because a class did not respond to
"+performSelector:" (see NSObject doc). However in this case, it
should work and using [self class] is not appropriated.
Actually, the replacement of [MySubclass performer:] with [[self
class]
performer:] does work, only the compiler gives the warning. If [self
class] is not appropriated, what would you suggest I use instead? I
have a couple of subclasses, so I cannot use [MySubclass
performSelector:] from the super, but need to replace it with whatever
subclass the class is. This is why I tried [self class] instead.
thanks,
- Koen.
------------------------------
_______________________________________________
Cocoa-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/cocoa-dev
End of Cocoa-dev Digest, Vol 1, Issue 277
*****************************************