• 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
Shell tool with GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shell tool with GUI


  • Subject: Shell tool with GUI
  • From: Chris Hiszpanski <email@hidden>
  • Date: Mon, 8 Dec 2008 00:57:08 -0500

Hello,

I'm trying to write a very simple oscilloscope in Cocoa as a shell tool that continuously reads samples via standard input and draws them as a waveform in a window. I do _not_ want a menu bar (i.e. an application), just one window that disappears when the parent shell tool receives the interrupt signal.

- How can I create a window without creating a full fledge application (i.e. without creating an instance of NSApplication)?

- What is the difference between a Cocoa Shell Tool and a Cocoa Application? Can a Cocoa Shell Tool draw GUI objects, or is it restricted to text in the shell?

- How can I read standard input? With the NSFileHandle class? I see fileHandleWithStandardInput is a class method there, but not an instance method...

- How can I draw an oscilloscope type "animation"? With the drawRect method of my own class that inherits from NSView? Or is there a more appropriate method?

I'd appreciate any pointers in the right direction.

Chris
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Shell tool with GUI
      • From: "Michael Ash" <email@hidden>
    • Re: Shell tool with GUI
      • From: Philip Ershler <email@hidden>
    • Re: Shell tool with GUI
      • From: douglas welton <email@hidden>
    • Re: Shell tool with GUI
      • From: Nick Zitzmann <email@hidden>
    • Re: Shell tool with GUI
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Cleanup inside a failed init method
  • Next by Date: Re: PackageMaker installing into /Applications or ~/Applications depending on admin or not?
  • Previous by thread: Re: Printing File to PDF from Native Application
  • Next by thread: Re: Shell tool with GUI
  • Index(es):
    • Date
    • Thread