• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa patterns?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa patterns?


  • Subject: Re: Cocoa patterns?
  • From: Georg Tuparev <email@hidden>
  • Date: Mon, 27 Aug 2001 17:55:34 +0200

On Monday, August 27, 2001, at 05:19 PM, Mike Davis wrote:
> How come notifications are so slow? It's just a subject/observer
> pattern.
> Is it doing something else in there?
>
Several years ago, I wrote the first version of GNUStep NSNotification*
classes (later some brighter folks replaced them completely ;-) While I
was writing them, a kind soul from NeXT pointed out that one of the
methods might be not very optimized. When I asked him why should I care
about it, he replied that notification are used excessively. Well, just
out of curiosity, I made some performance monitoring of the application
I was writing at that time, and was shocked to discover that the
notification center was burning 70% of the cpu!
The bottom line: notifications are so nice and elegant, that they could
be misused easily. Use them, but keep this lesson in mind!

>> Not that I know of. But the Design patterns book by the Gang of Four is
>> very strongly influenced by the predecessor of Cocoa, called NeXTSTEP.
>> And if you wait for a month or two, I will publish parts of my book
>> (in
>> preparation) on my website. It will include some useful patters.
>
> I assume you're including some Anti-Patterns too? Blob for instance?

To be honest, I was not impressed by them. But the "Analysis Patterns"
were a real joy to read (and helpful too).

Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196


References: 
 >Re: Cocoa patterns? (From: "Mike Davis" <email@hidden>)

  • Prev by Date: Re: Finding keyboard state in Cocoa
  • Next by Date: Carbon <-> Cocoa
  • Previous by thread: Re: Cocoa patterns?
  • Next by thread: Re: Cocoa Patterns
  • Index(es):
    • Date
    • Thread