• 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: Nebagakid <email@hidden>
  • Date: Mon, 26 Jan 2004 17:34:43 -0500

I think I have far as I can go: http://homepage.mac.com/nebagakid/Lester.tgz (1.4MB)
I am not sure where I am going. I made a custom NSImage, NSView, and NSTextField. I was thinking that these would be the basic elements of the "modules." You can set the color and opacity of the View, and then on top of the view, you can place and arrange your images and text in anyway you want. But, I am just not able to get through it myself. Anybody have any help for me to go further? It does not run right now, it builds though. There are a lot of errors. Could some tell me where to go from here? Thanks

-Danny Cohen
< http://dco1.com/ >
On Jan 26, 2004, at 8:05 AM, M. Uli Kusterer wrote:

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.

References: 
 >Re: [APP IDEA] Desktop Background Scripting (From: Nebagakid <email@hidden>)
 >Re: [APP IDEA] Desktop Background Scripting (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: NSOutlineView expanded state persistence
  • Next by Date: An IM as an event... is it possible?
  • Previous by thread: Re: [APP IDEA] Desktop Background Scripting
  • Next by thread: Odd DO Problem...
  • Index(es):
    • Date
    • Thread