Getting notified on tab-switch in Safari?
-
Hi :)
I'm currently in the process of learning ObjC and Cocoa and therefor
wanted to write a small InputManager for Safari that basically provides
a small icon or something similiar in [NSApp mainMenu], so far so good.
Now I want this icon to change depending on what website the user is
currently looking at. I've already found out about the notification
NSWindow sends on getting focuses, but I failed so far on getting
something similiar for when a tab in Safari/WebKit gets focused.
Could someone of your please give me some hints here? :)
Thank you :)
Best wishes,
Horst Gutmann -
I think you're going to need to class-dump Safari and look through
yourself
Mike.
On 30 Apr 2006, at 20:36PM0, Horst Gutmann wrote:
> Hi :)
>
> I'm currently in the process of learning ObjC and Cocoa and therefor
> wanted to write a small InputManager for Safari that basically
> provides
> a small icon or something similiar in [NSApp mainMenu], so far so
> good.
> Now I want this icon to change depending on what website the user is
> currently looking at. I've already found out about the notification
> NSWindow sends on getting focuses, but I failed so far on getting
> something similiar for when a tab in Safari/WebKit gets focused.
>
> Could someone of your please give me some hints here? :)
>
> Thank you :)
> Best wishes,
> Horst Gutmann
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<Cocoa-dev...>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/mike.abdullah%
> 40gmail.com
>
> This email sent to <mike.abdullah...>
-
Ok, thanks anyway :)
Mike Abdullah schrieb:
> I think you're going to need to class-dump Safari and look through yourself
>
> Mike.
>
> On 30 Apr 2006, at 20:36PM0, Horst Gutmann wrote:
>
>> Hi :)
>>
>> I'm currently in the process of learning ObjC and Cocoa and therefor
>> wanted to write a small InputManager for Safari that basically provides
>> a small icon or something similiar in [NSApp mainMenu], so far so good.
>> Now I want this icon to change depending on what website the user is
>> currently looking at. I've already found out about the notification
>> NSWindow sends on getting focuses, but I failed so far on getting
>> something similiar for when a tab in Safari/WebKit gets focused.
>>
>> Could someone of your please give me some hints here? :)
>>
>> Thank you :)
>> Best wishes,
>> Horst Gutmann
>
>
-
You know, if you're an Objective-C/Cocoa newbie, this seems like a
pretty big project to tackle. Usually haxies need to be extra careful
about how they are designed, and you need to do a lot of reverse
engineering—not really a straightforward task. You might try
designing a more stand-alone app first.
On May 1, 2006, at 1:19 PM, Horst Gutmann wrote:
> Ok, thanks anyway :)
>
> Mike Abdullah schrieb:
>> I think you're going to need to class-dump Safari and look through
>> yourself
>>
>> Mike.
>>
>> On 30 Apr 2006, at 20:36PM0, Horst Gutmann wrote:
>>
>>> Hi :)
>>>
>>> I'm currently in the process of learning ObjC and Cocoa and therefor
>>> wanted to write a small InputManager for Safari that basically
>>> provides
>>> a small icon or something similiar in [NSApp mainMenu], so far so
>>> good.
>>> Now I want this icon to change depending on what website the user is
>>> currently looking at. I've already found out about the notification
>>> NSWindow sends on getting focuses, but I failed so far on getting
>>> something similiar for when a tab in Safari/WebKit gets focused.
>>>
>>> Could someone of your please give me some hints here? :)
>>>
>>> Thank you :)
>>> Best wishes,
>>> Horst Gutmann
>>
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<Cocoa-dev...>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/jstiles%
> 40blizzard.com
>
> This email sent to <jstiles...>
-
How can I do a class dump?
Can you provide me with a little example?
Thank you!
On 5/1/06, John Stiles <JStiles...> wrote:
>
> You know, if you're an Objective-C/Cocoa newbie, this seems like a
> pretty big project to tackle. Usually haxies need to be extra careful
> about how they are designed, and you need to do a lot of reverse
> engineering—not really a straightforward task. You might try
> designing a more stand-alone app first.
>
> On May 1, 2006, at 1:19 PM, Horst Gutmann wrote:
>
>> Ok, thanks anyway :)
>>
>> Mike Abdullah schrieb:
>>> I think you're going to need to class-dump Safari and look through
>>> yourself
>>>
>>> Mike.
>>>
>>> On 30 Apr 2006, at 20:36PM0, Horst Gutmann wrote:
>>>
>>>> Hi :)
>>>>
>>>> I'm currently in the process of learning ObjC and Cocoa and therefor
>>>> wanted to write a small InputManager for Safari that basically
>>>> provides
>>>> a small icon or something similiar in [NSApp mainMenu], so far so
>>>> good.
>>>> Now I want this icon to change depending on what website the user is
>>>> currently looking at. I've already found out about the notification
>>>> NSWindow sends on getting focuses, but I failed so far on getting
>>>> something similiar for when a tab in Safari/WebKit gets focused.
>>>>
>>>> Could someone of your please give me some hints here? :)
>>>>
>>>> Thank you :)
>>>> Best wishes,
>>>> Horst Gutmann
>>>
>>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Cocoa-dev mailing list (<Cocoa-dev...>)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/jstiles%
>> 40blizzard.com
>>
>> This email sent to <jstiles...>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<Cocoa-dev...>)
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/cocoa-dev/<fabian.spillner...>
m
>
> This email sent to <fabian.spillner...>
>
-
You could try googling "class dump". One of the top hits is:
http://www.cocoadev.com/index.pl?ClassDump
--
I.S.
On May 4, 2006, at 11:07 AM, Fabian Spillner wrote:
> How can I do a class dump?
> Can you provide me with a little example?
>
> Thank you!
>
> On 5/1/06, John Stiles <JStiles...> wrote:
>>
>> You know, if you're an Objective-C/Cocoa newbie, this seems like a
>> pretty big project to tackle. Usually haxies need to be extra careful
>> about how they are designed, and you need to do a lot of reverse
>> engineering—not really a straightforward task. You might try
>> designing a more stand-alone app first.
>>
>> On May 1, 2006, at 1:19 PM, Horst Gutmann wrote:
>>
>>> Ok, thanks anyway :)
>>>
>>> Mike Abdullah schrieb:
>>>> I think you're going to need to class-dump Safari and look through
>>>> yourself
>>>>
>>>> Mike.
>>>>
>>>> On 30 Apr 2006, at 20:36PM0, Horst Gutmann wrote:
>>>>
>>>>> Hi :)
>>>>>
>>>>> I'm currently in the process of learning ObjC and Cocoa and
>> therefor
>>>>> wanted to write a small InputManager for Safari that basically
>>>>> provides
>>>>> a small icon or something similiar in [NSApp mainMenu], so far so
>>>>> good.
>>>>> Now I want this icon to change depending on what website the
>> user is
>>>>> currently looking at. I've already found out about the
>> notification
>>>>> NSWindow sends on getting focuses, but I failed so far on getting
>>>>> something similiar for when a tab in Safari/WebKit gets focused.
>>>>>
>>>>> Could someone of your please give me some hints here? :)
>>>>>
>>>>> Thank you :)
>>>>> Best wishes,
>>>>> Horst Gutmann
>>>>
>>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Cocoa-dev mailing list (<Cocoa-dev...>)
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/cocoa-dev/jstiles%
>>> 40blizzard.com
>>>
>>> This email sent to <jstiles...>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Cocoa-dev mailing list (<Cocoa-dev...>)
>> Help/Unsubscribe/Update your Subscription:
>>
>> http://lists.apple.com/mailman/options/cocoa-dev/fabian.spillner%
>> 40gmail.com
>>
>> This email sent to <fabian.spillner...>
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<Cocoa-dev...>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
> 40gmail.com
>
> This email sent to <idiotsavant2005...>


