• 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: Good example code for an Inspector/Get Info window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Good example code for an Inspector/Get Info window?


  • Subject: Re: Good example code for an Inspector/Get Info window?
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 2 Jan 2004 20:17:24 -0800

On Jan 2, 2004, at 2:50 PM, Jim Rankin wrote:

The Inspector/Get Info paradigm is a common Cocoa design pattern, but
is there a good source code example of how to implement this pattern in
a Document based application? A quick perusal of /Developer/Examples
doesn't turn up anything.

Have you tried OmniAppKit? That framework has an implementation of inspectors for Cocoa.

The difficult part in writing inspectors is figuring out when to update the inspector. If you're using a class that has a did-change delegate or notification, then this isn't too difficult - just listen for changes, and tell the inspector to update when a change occurs. If you're using NSBrowser or NSMatrix, or some other view that has no built-in way of telling others that the class changed, then some subclassing will be necessary...

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

"That's a funny thing to promise. Well, you can't never let anything happen to him [Nemo]; then, nothing would ever happen to him." - Dory, from the movie "Finding Nemo"
_______________________________________________
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.
  • Follow-Ups:
    • Re: Good example code for an Inspector/Get Info window?
      • From: Scott Anguish <email@hidden>
References: 
 >Good example code for an Inspector/Get Info window? (From: Jim Rankin <email@hidden>)

  • Prev by Date: Re: Converting NSString to char constant (answered)
  • Next by Date: Re: Allocation during awakeFromNib
  • Previous by thread: Re: Good example code for an Inspector/Get Info window?
  • Next by thread: Re: Good example code for an Inspector/Get Info window?
  • Index(es):
    • Date
    • Thread