Re: Properties and bindings

2008-09-22 Thread Jason Coco
On Sep 22, 2008, at 21:35 , D.K. Johnston wrote: I'm trying to learn how to use bindings. MyObject has an NSInteger myInt. I used @property and @synthesize to make myInt into a property. In IB I bound an NSTextField to the myInt property. Now when I do this: self.myInt = 123; wh

Re: Properties and bindings

2008-09-22 Thread Roland King
when you do self.myInt under the covers you're really doing [ self setMyInt:123 ], and that method is KVO compliant so it fires the property change notification the textfield needs. myInt = 123 just sets the variable directly and skips the property change notification. On Sep 23, 2008,

Re: Properties and bindings

2008-09-22 Thread Nick Zitzmann
On Sep 22, 2008, at 7:35 PM, D.K. Johnston wrote: I'm trying to learn how to use bindings. MyObject has an NSInteger myInt. I used @property and @synthesize to make myInt into a property. In IB I bound an NSTextField to the myInt property. Now when I do this: self.myInt = 123; w

NSURLDownload resumeData always nil

2008-09-22 Thread Andrew Zahra
I am experimenting with the resume functionality in NSURLDownload, however I always get nil back when I call resumeData. I have tried a couple of different sites and then tried using wget to get the files. wget resumes the files fine, so I think I am doing something wrong. This is the code in quest

Properties and bindings

2008-09-22 Thread D.K. Johnston
I'm trying to learn how to use bindings. MyObject has an NSInteger myInt. I used @property and @synthesize to make myInt into a property. In IB I bound an NSTextField to the myInt property. Now when I do this: self.myInt = 123; when initialising MyObject, the value shows up in the te

[Moderator] Re: Developer needed

2008-09-22 Thread CocoaDev Admins
On 22-Sep-08, at 6:14 PM, alex wrote: Hello, Sorry for the intrusion but I'm looking for someone to take over the iPhone application that I wrote for AT&T's yellowpages. For future reference... iPhone job offers are not to be posted on this list. Any Cocoa job offers should be sent to th

Re: NSImage with alpha

2008-09-22 Thread James Walker
Randall Meadows wrote: On Sep 22, 2008, at 3:20 PM, James Walker wrote: Is there any easy way to make an NSImage that like another NSImage, but with an overall translucency? It would be useful for drag images. What about creating a new image of the appropriate size, locking focus on that, a

Re: [Q] Custom NSFormatter and IB's Cocoa Simulator

2008-09-22 Thread Jonathan Hess
On Sep 22, 2008, at 4:01 PM, JongAm Park wrote: Hello. I tried making my own custom NSFormatter by following the guide, "Interface Builder Plug-In Programming Guide" However, when I tried my NSFormatter subclass using the "Simulate Interface" menu item of the Interface Builder, it rasied

Re: Utility/Floating window with titlebar on left side

2008-09-22 Thread Eric Schlegel
On Sep 22, 2008, at 3:55 PM, Nick Beadman wrote: According to : HITheme is currently undecided. We did hear from multiple developers at the conference today who use HITheme and would like to see it in 64-bit. -eric schlegel Has the fat

[Q] Custom NSFormatter and IB's Cocoa Simulator

2008-09-22 Thread JongAm Park
Hello. I tried making my own custom NSFormatter by following the guide, "Interface Builder Plug-In Programming Guide" However, when I tried my NSFormatter subclass using the "Simulate Interface" menu item of the Interface Builder, it rasied : An uncaught exception was raised *** - [NSKeyedU

Re: Utility/Floating window with titlebar on left side

2008-09-22 Thread Nick Beadman
Eric, On Sep 22, 2008, at 2:08 pm, Eric Schlegel wrote: On Sep 22, 2008, at 12:03 PM, Nick Beadman wrote: At this point I think the only thing to do is to create a borderless window and create my own left side title bar (using + [NSWindow standardWindowButton:] to get small standard window

Always allowing drags from WebView inside a global NSPanel

2008-09-22 Thread Nick Beadman
I have a NSPanel which does not hide on deactivate [1] and has a WebView embedded in a NSTabView. All of this resides in an "agent" application (LSUIElement is set in Info.plist). The objective is to have a small globally accessible web site where the user can drag images into other applica

Developer needed

2008-09-22 Thread alex
Hello, Sorry for the intrusion but I'm looking for someone to take over the iPhone application that I wrote for AT&T's yellowpages. I'm looking for someone who has commercial (consumer) software experience. And someone who enjoys solving problems in a elegant and expedient manner. I am n

Re: appleScriptWithContentsfFile wipes out Quark's Applescript dictionary

2008-09-22 Thread has
[EMAIL PROTECTED] wrote: I wrote a Quark XTension that displays scripts in a floating palette and have found that the following wies out most of Quark's AppleScript dictionary NSAppleScript *script = [[NSAppleScript appleScriptWithContentsfFile: inPath] retain]; I think you need to def

Re: NSImage with alpha

2008-09-22 Thread Randall Meadows
On Sep 22, 2008, at 3:20 PM, James Walker wrote: Is there any easy way to make an NSImage that like another NSImage, but with an overall translucency? It would be useful for drag images. What about creating a new image of the appropriate size, locking focus on that, and then use one of the

NSImage with alpha

2008-09-22 Thread James Walker
Is there any easy way to make an NSImage that like another NSImage, but with an overall translucency? It would be useful for drag images. -- James W. Walker, Innoventive Software LLC ___ Cocoa-dev mailing list (Cocoa

Re: Utility/Floating window with titlebar on left side

2008-09-22 Thread Eric Schlegel
On Sep 22, 2008, at 12:03 PM, Nick Beadman wrote: At this point I think the only thing to do is to create a borderless window and create my own left side title bar (using +[NSWindow standardWindowButton:] to get small standard window buttons). If I manage to implement such a thing I will t

Re: File I/O

2008-09-22 Thread Marcel Weiher
On Sep 19, 2008, at 14:15 , Jordon Hirshon wrote: How can I read a file a line at a time (i.e. getline)? I'm trying to do this in a Cocoa Framework. You could just use the POSIX fgets() call... Marcel ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Utility/Floating window with titlebar on left side

2008-09-22 Thread Nick Beadman
Dave, On Sep 20, 2008, at 2:23 am, Dave Jewell wrote: The code below shows how (without IB) to do this programmatically: NSWindow * weirdWindow = [[NSWindow alloc] initWithContentRect: NSMakeRect (50, 50, 500, 300) styleMask: NSTitledWindowMask | (1 << 9) backing: NSBackingStoreBuffered de

[ANN] Swfdec, new developer tool

2008-09-22 Thread Nick Zitzmann
(DISCLAIMER: I'm speaking only for myself here. I usually am, but you already knew that, right?) Today I published the source code and binaries for a new framework, called Swfdec. You can use it for free in your applications (it's LGPL'd) to run Flash animations. Swfdec comes with one NSVie

appleScriptWithContentsfFile wipes out Quark's Applescript dictionary

2008-09-22 Thread kentozier
Hi I wrote a Quark XTension that displays scripts in a floating palette and have found that the following wies out most of Quark's AppleScript dictionary NSAppleScript *script = [[NSAppleScript appleScriptWithContentsfFile: inPath] retain]; Anyone know why that would happen and possible ways

Re: How do I get CAScrollLayer to draw its sublayers

2008-09-22 Thread David Duncan
On Sep 21, 2008, at 3:39 PM, Cesar Alaniz wrote: I have set up a CAScrollLayer with one sublayer, in this case a CATiledLayer. The documentation say's that CATiledLayer will call drawLayer:(CALayer*)layer inContext:(CGContextRef) ref as the layer is needed to be drawn. I cannot see this

Australia Cocoa consulting/training?

2008-09-22 Thread Devraj Mukherjee
Hi all, May be the wrong place to post this message but didn't know where to start. Are there any Australia based Cocoa developers on this list who would be willing to conduct a one day consulting session to sort out some issues with an application we are building? Issues revolve around user int

Re: Darker Round Rect NSButtons

2008-09-22 Thread Andreas Mayer
Am 20.09.2008 um 23:26 Uhr schrieb Colin Doncaster: but I can't help wonder if I'm missing a simple setting somewhere. There is no simple setting. People usually create their own buttons. I've got a bunch of classes you might be able to use: http://www.harmless.de/cocoa-code.php#rollover

Re: how to tell if my app is visible.

2008-09-22 Thread Michael Ash
On Mon, Sep 22, 2008 at 7:07 AM, Memo Akten <[EMAIL PROTECTED]> wrote: > > Hi All, i have an app which is running on the desktop : > >windowRect = [[NSScreen mainScreen] visibleFrame]; >window = [[NSWindow alloc] initWithContentRect:windowRect > styleMask:NSBorderlessWindowMask back

Re: how to tell if my app is visible.

2008-09-22 Thread Memo Akten
Hi John, thanks for the reply. My problem is not so much with detecting when the application is active or not, but detecting whether the mouse is over the application while the application is not active, but does not have another window over it. is this even possible? On 22 Sep 2008, at 1

Re: NSArchiver and NSKeyedArchiver

2008-09-22 Thread Michael Ash
On Sun, Sep 21, 2008 at 11:21 PM, D.K. Johnston <[EMAIL PROTECTED]> wrote: > I wrote a class that conforms to the NSCoding protocol. I used > encodeObject:forKey and decodeObjectForKey: in the required methods. > > By mistake I used NSArchiver to archive one of the class instances. It > compiled wi

Re: how to tell if my app is visible.

2008-09-22 Thread John Clayton
Try looking into using the NSApplication delegate methods that inform you when your app becomes active/hidden, e.g. - (void)applicationDidBecomeActive:(NSNotification *)aNotification Thanks -- John Clayton On 22/09/2008, at 1:07 PM, Memo Akten wrote: Hi All, i have an app which is running

Re: How do I get CAScrollLayer to draw its sublayers

2008-09-22 Thread Bill Dudney
Hi Cesar, I had more luck getting rid of the scroll layer and using a 'normal layer'. http://bill.dudney.net/roller/objc/entry/catiledlayer_example Has a full example of doing the tiled layer stuff with a PDF. My book has an example on doing the tiled layer stuff with tiled jpg files; h

how to tell if my app is visible.

2008-09-22 Thread Memo Akten
Hi All, i have an app which is running on the desktop : windowRect = [[NSScreen mainScreen] visibleFrame]; window = [[NSWindow alloc] initWithContentRect:windowRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]; [window setFrame:windowRect displa

Re: fullscreen quicktime across multiple monitors

2008-09-22 Thread Memo Akten
ah thanks, will try it out. On 21 Sep 2008, at 23:19, Jean-Daniel Dupas wrote: You are free to setup a window yourself , add a QTMovieView in it, and display it as you need. NSRect contents = [aScreen frame]; contents.origin = NSZeroPoint; NSWindow *window = [super initWithContentRect:conten

Re: NSArchiver and NSKeyedArchiver

2008-09-22 Thread Mike Abdullah
Your archiving code could do it's own check for -[coder allowsKeyedCoding] and log/raise an exception if not. On 22 Sep 2008, at 04:21, D.K. Johnston wrote: I wrote a class that conforms to the NSCoding protocol. I used encodeObject:forKey and decodeObjectForKey: in the required methods.

[SOLVED] Did I find a NSScanner bug, or am I doing this all wrong?

2008-09-22 Thread Britt Durbrow
Your problem is that you need to set the characters to be skipped to something other than what you are trying to scan. Bingo! It's working now. Thanks. :-) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

NSArchiver and NSKeyedArchiver

2008-09-22 Thread D.K. Johnston
I wrote a class that conforms to the NSCoding protocol. I used encodeObject:forKey and decodeObjectForKey: in the required methods. By mistake I used NSArchiver to archive one of the class instances. It compiled with no trouble; but then, not surprisingly, I got an exception when I ran it:

Suggesting a user name for NSURLConnection

2008-09-22 Thread Lakshmi Vyasarajan
Hello, I have an application that interfaces with delicious. I have created an account in delicious for testing purposes. In the process of switching between these accounts, my keychain now has two entries for delicious API URL. When I am calling the service I know which user the call is

Darker Round Rect NSButtons

2008-09-22 Thread Colin Doncaster
My apologies for what may be a seemingly obvious and simple question, I want to make sure I'm not overlooking anything though. I have been trying to poke around the internet for examples of what I'm looking for but have come up empty so far. I'd like to use the Round Rect buttons with a co

Re: Finding other apps' paths - deterministically!

2008-09-22 Thread Jeffrey R. Kelley
Incidentally, this is something Microsoft's Office 2008 update installers do. If you're not careful you can walk away and come back hours later with the search still running. Jeffrey R. Kelley [EMAIL PROTECTED] ITCS - Campus Computing Sites University of Michigan On Sep 21, 2008, at 3:49 PM