• 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: Two Quick Questions…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two Quick Questions…


  • Subject: Re: Two Quick Questions…
  • From: Itrat Khan <email@hidden>
  • Date: Sat, 3 Aug 2002 11:48:54 -0400

On Saturday, August 3, 2002, at 08:49 AM, Albert Atkinson wrote:

The first is this, I have an NSToolbar item with a grey pill as its image. What I want to do is when a user performs a certain action it is changed its image to a green pill.

Have your toolbar's delegate invoke [aToolbarItem setImage:greenPillImage] from validateToolbarItem:. In my opinion though, dynamically changing a toolbar item's image dilutes its meaning and should be avoided. I remember the Aqua Interface Guidelines stressed that toolbar labels should be static, and there may be a similar guideline for the image as well.


The second thing I want to accomplish is to insert the NSLog of my program into an NSTextView. If I am thinking correctly is not the log of my program in a text file buried in the Library? What I would need is to update the NSLog that is in my NSTextView every couple seconds to show any changes in the NSLog that may have occured since it last was refreshed.

The Console application does this for you. You'll need to run your application from the Finder though, not Project Builder. Project Builder will intercept NSLog() events and display them in its output area.

Regards,
Itrat.

............................................................
Modeless Software, Inc.
London, Ontario (Canada)
Tel: +1 519 473 2037
Web: www.modeless.com
_______________________________________________
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: Two Quick Questions…
      • From: Albert Atkinson <email@hidden>
References: 
 >Two Quick Questions… (From: Albert Atkinson <email@hidden>)

  • Prev by Date: Re: Checksum of App/NIB
  • Next by Date: How to deal with NSFilePosixPermissions ?
  • Previous by thread: Two Quick Questions…
  • Next by thread: Re: Two Quick Questions…
  • Index(es):
    • Date
    • Thread