• 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: [APP IDEA] Desktop Background Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [APP IDEA] Desktop Background Scripting


  • Subject: Re: [APP IDEA] Desktop Background Scripting
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 26 Jan 2004 14:05:58 +0100

At 19:22 Uhr -0500 25.01.2004, Nebagakid wrote:
I can make the NSView a color, and a certain opacity, and that is it :( . I would like to do something more, though, although that is beyond my skills.

It isn't :-p You can create several views in the content view of a window. You can write your own NSView subclasses (there's a template under "new file" in xCode), and if you just want to display text, you can just use an NSTextView or NSTextField, make it un-editable etc. Create a new Cocoa NIB file with a window and just play with that a little. Everything you can do with IB, you can also do 'manually'.

How easy would it be to make a way to have the app accept easy to write scripts in the NSView area.

For now, I'd suggest you stick with writing your views in Cocoa. Once you have a plug-in scheme that lets people drop in bundles that add various views, and you have written some custom views that display text, change colors etc., you can still write a special plug-in that uses NSAppleScript to let the user customize that view. Or you could use NSTask and capture the result of command-line-tools, Perl scripts, PHP scripts and whatever other language is installed on your Mac.

Also, how can I make the NSView centered? I have so many questions. I just want to make it do this: http://dco1.com/kitchen/images/apppreview1.jpg (the image I hope explains a lot)

Well, obviously you'd have to write some text to get the actual stock info (probably by parsing a web site using NSScanner after downloading it using NSURL or WebCore). But apart from that, this could be done using a run-of(f?)-the-mill NSTextView which you feed an NSAttributedString.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: [APP IDEA] Desktop Background Scripting
      • From: Nebagakid <email@hidden>
References: 
 >Re: [APP IDEA] Desktop Background Scripting (From: Nebagakid <email@hidden>)

  • Prev by Date: Re: Collapsing/expanding NSSplitView
  • Next by Date: Re: Memory Leak with NSMutable String
  • Previous by thread: Re: [APP IDEA] Desktop Background Scripting
  • Next by thread: Re: [APP IDEA] Desktop Background Scripting
  • Index(es):
    • Date
    • Thread