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, Peter O'Gorman wrote:

Don't do find /, please! It could end up looking through every  
directory

entry on a remote petabyte filesystem.




smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

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 colour scheme similar to  
that used by applications like Pixelmator - if you look at http://www.pixelmator.com/i/layers-front.png 
 you can see what I mean.  It's a darker more colour sensitive  
scheme.  I was using the CALayer effects in Interface Builder to apply  
an exposure adjustment to the buttons that sort of gives me the  
correct look, but I can't help wonder if I'm missing a simple setting  
somewhere.


I figure I could either subclass NSButtonCell or make the changes via  
an -awakeFromNib call in the document class but, as it appears a few  
applications seem to be using this style of button, figured it  
wouldn't hurt to ask.


On that same note, would the horizontal slider shown in that image use  
a similar override?


Thanks
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 made for,  
but there doesnt seem to be any way to tell NSURLConnection to lookup  
the credentials for the given user name. I really want to avoid  
sending the URL with user name and password.


I am using sendSynchronousRequest to perform this operation.

Is there a way to suggest the user name or do I have to resort to more  
low level API to get this working?


Thanks
Lakshmi.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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:


*** Terminating app due to uncaught exception  
'NSInvalidArgumentException'
reason: '*** -encodeObject:forKey: only defined for abstract class.  
Define -[NSArchiver encodeObject:forKey:]!'


The fact that I should have used NSKeyedArchiver instead of NSArchiver  
isn't obvious from the message.  (At least it's not obvious to me.)  
Can anything be done to ensure users of the class use NSKeyedArchiver,  
besides putting a comment in the header file?


Thanks etc.
dkj
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[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 moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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.


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:


*** Terminating app due to uncaught exception  
'NSInvalidArgumentException'
reason: '*** -encodeObject:forKey: only defined for abstract class.  
Define -[NSArchiver encodeObject:forKey:]!'


The fact that I should have used NSKeyedArchiver instead of  
NSArchiver isn't obvious from the message.  (At least it's not  
obvious to me.) Can anything be done to ensure users of the class  
use NSKeyedArchiver, besides putting a comment in the header file?


Thanks etc.
dkj
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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:contents
  styleMask:NSBorderlessWindowMask
backing: NSBackingStoreRetained
defer:NO screen:aScreen];
[window setContentView:myMovieView];

SetSystemUIMode(kUIModeAllSuppressed, kUIOptionAutoShowMenuBar);
[window makeKeyAndOrderFront];



Le 21 sept. 08 à 23:58, Memo Akten a écrit :

hmm, yea does seem a bit problematic.  so is it not possible to  
play quicktime across multiple monitors then? those threads seem to  
have not come to a solution...



On 19 Sep 2008, at 17:48, Sean McBride wrote:

It does, doesn't it.  However, it has lots of little problems, and  
is
only really useful for the simplest of cases.  Search the list  
archives

for "enterFullScreenMode".

On 9/19/08 9:42 AM, Memo Akten said:


wow that looks perfect thanks..

On 19 Sep 2008, at 05:10, John C. Randolph wrote:



On Sep 17, 2008, at 12:03 PM, Memo Akten wrote:

Hi All, I'd like to create a little app the runs a quicktime  
movie
(prores) fullscreen across multiple monitors. I think I can  
figure

out the QTKit stuff, but couldn't find upto date documentation on
going fullscreen. I've found some code snippets to do it, but  
they

are all pre-leopard and I have a feeling that its a bit more
straightforward on leopard (i'm hoping). Can anyone point me in  
the
right direction? (or has this already been done?) Its for  
personal

use and not distribution so min specs 10.5.5 etc. is fine.


Leopard introduced a new API for this.  See NSView's
enterFullScreenMode:withOptions: method.


--

Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer  Montréal, Québec, Canada




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org

This email sent to [EMAIL PROTECTED]





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 display:NO];
[window setOpaque:NO];
[window setBackgroundColor:[NSColor clearColor]];
[window setMovableByWindowBackground:NO];
[window setLevel:kCGDesktopIconWindowLevel];
[window setAcceptsMouseMovedEvents:YES];

The app is running a quartz composition, which has custom QCPlugin in  
it.


My first problem was, that even where there are other app windows  
(e.g. finder) on top of my app, the app (the quartz composition)  
responds to mouse events whilst its in the background (e.g. I want  
animations to trigger if the mouse is over something, but not if its  
obscured by finder or safari etc.). So I did a check to see if my app  
was active or not ([[NSApplication sharedApplication] isActive])  
before responding to mouse position and events.


That works to some degree, but if I have a window to the side and my  
app is fully visible, it doesn't respond to mouse position and events  
- because its not active. But is there a solution to this?










___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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;


http://www.pragprog.com/titles/bdcora

Good luck!

-bd-

On Sep 21, 2008, at 4: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 method being called  
currently.  My CAScrollLayer, the superlayer has  
setNeedsDisplayOnBoundsChange set to YES and a delegate set to draw  
the content.  The delegate method drawLayer inContext for the scroll  
layer is being called.  Do i need to do something special to make it  
redraw CATiledLayer's layer?


Thanks,
Cesar
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/bdudney%40mac.com

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 on the desktop :

windowRect = [[NSScreen mainScreen] visibleFrame];
	window = [[NSWindow alloc] initWithContentRect:windowRect  
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered  
defer:NO];

[window setFrame:windowRect display:NO];
[window setOpaque:NO];
[window setBackgroundColor:[NSColor clearColor]];
[window setMovableByWindowBackground:NO];
[window setLevel:kCGDesktopIconWindowLevel];
[window setAcceptsMouseMovedEvents:YES];

The app is running a quartz composition, which has custom QCPlugin  
in it.


My first problem was, that even where there are other app windows  
(e.g. finder) on top of my app, the app (the quartz composition)  
responds to mouse events whilst its in the background (e.g. I want  
animations to trigger if the mouse is over something, but not if its  
obscured by finder or safari etc.). So I did a check to see if my  
app was active or not ([[NSApplication sharedApplication] isActive])  
before responding to mouse position and events.


That works to some degree, but if I have a window to the side and my  
app is fully visible, it doesn't respond to mouse position and  
events - because its not active. But is there a solution to this?










___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/john_clayton 
%40mac.com


This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 with no trouble; but then, not surprisingly, I got an exception
> when I ran it:
>
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException'
> reason: '*** -encodeObject:forKey: only defined for abstract class. Define
> -[NSArchiver encodeObject:forKey:]!'
>
> The fact that I should have used NSKeyedArchiver instead of NSArchiver isn't
> obvious from the message.  (At least it's not obvious to me.) Can anything
> be done to ensure users of the class use NSKeyedArchiver, besides putting a
> comment in the header file?

A comment in the header is a pretty good way to go, and a fairly
standard technique. Understanding the error you saw will get easier
with time. It's telling you that you're sending a message to an object
that doesn't understand it. Some inspection shows that it's a keyed
archiving message, and you're sending it to NSArchiver, so the rest
flows from there. Now I don't doubt that it was non-obvious for you
the first time around, but you'll probably only have that difficulty
once.

However, for extra paranoia, Mike Abdullah's technique of checking
explicitly can let you give yourself a better error message.

Mike
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 13:31, John Clayton wrote:

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 on the desktop :

windowRect = [[NSScreen mainScreen] visibleFrame];
	window = [[NSWindow alloc] initWithContentRect:windowRect  
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered  
defer:NO];

[window setFrame:windowRect display:NO];
[window setOpaque:NO];
[window setBackgroundColor:[NSColor clearColor]];
[window setMovableByWindowBackground:NO];
[window setLevel:kCGDesktopIconWindowLevel];
[window setAcceptsMouseMovedEvents:YES];

The app is running a quartz composition, which has custom QCPlugin  
in it.


My first problem was, that even where there are other app windows  
(e.g. finder) on top of my app, the app (the quartz composition)  
responds to mouse events whilst its in the background (e.g. I want  
animations to trigger if the mouse is over something, but not if  
its obscured by finder or safari etc.). So I did a check to see if  
my app was active or not ([[NSApplication sharedApplication]  
isActive]) before responding to mouse position and events.


That works to some degree, but if I have a window to the side and  
my app is fully visible, it doesn't respond to mouse position and  
events - because its not active. But is there a solution to this?










___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/john_clayton%40mac.com

This email sent to [EMAIL PROTECTED]




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 backing:NSBackingStoreBuffered defer:NO];
>[window setFrame:windowRect display:NO];
>[window setOpaque:NO];
>[window setBackgroundColor:[NSColor clearColor]];
>[window setMovableByWindowBackground:NO];
>[window setLevel:kCGDesktopIconWindowLevel];
>[window setAcceptsMouseMovedEvents:YES];
>
> The app is running a quartz composition, which has custom QCPlugin in it.
>
> My first problem was, that even where there are other app windows (e.g.
> finder) on top of my app, the app (the quartz composition) responds to mouse
> events whilst its in the background (e.g. I want animations to trigger if
> the mouse is over something, but not if its obscured by finder or safari
> etc.). So I did a check to see if my app was active or not ([[NSApplication
> sharedApplication] isActive]) before responding to mouse position and
> events.
>
> That works to some degree, but if I have a window to the side and my app is
> fully visible, it doesn't respond to mouse position and events - because its
> not active. But is there a solution to this?

Sounds like your end goal is not to detect whether your window is
visible, but rather to limit mouse events to visible regions.
NSTrackingArea on 10.5 can do this. If you need to support 10.4, you
may be able to do the same thing with NSView's old-style tracking rect
support.

Mike
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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


Andreas
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 interface elements / bindings mostly.

Thanks.

-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 method being called  
currently.  My CAScrollLayer, the superlayer has  
setNeedsDisplayOnBoundsChange set to YES and a delegate set to draw  
the content.  The delegate method drawLayer inContext for the scroll  
layer is being called.  Do i need to do something special to make it  
redraw CATiledLayer's layer?



You need to call -setNeedsDisplay on the tiled layer. Doing so on the  
scroll layer will only affect its own contents.

--
David Duncan
Apple DTS Animation and Printing

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 to fix it?

Thanks for any help

Ken


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[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 NSView  
subclass, SDFlashView, that runs an animation given a URL.


So why use Swfdec? Well, it's easier to set up and use than a WebView  
if all you want to do is run a Flash animation, and it also uses a lot  
less memory than WebView. In addition, it supports the new garbage  
collection feature of Objective-C, and it'll support 64-bit  
addressing, too, once I port some ATSUI code over to something that  
works in the 64-bit environment. It should also be possible to port to  
the ** and  *, but we can't discuss that in public.


But the most important thing is, it uses its own Flash engine and does  
not use Flash Player, so Swfdec will run on computers where Adobe  
Flash Player is not allowed (e.g. some office environments).


This is a sneaky-peek (not final) release and video is not implemented  
yet (and I need some help getting it to work), but other than that,  
your animations should Just Work™: 


Nick Zitzmann





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 defer: NO];

[weirdWindow orderFront: self];

However, as others have pointed out, it's not that simple.  In the  
above code, for example, I've not made the window closable (no close  
box) 'cos if you try, the close box will end up half on and half off  
the vertical titlebar!  Not great!  If you really want to do this,  
and make it look good then (a) it's probably quite a bit of work and  
(b) you'll very likely need to give your window a custom frame class.


Tried this today and in addition to the close box being the wrong size  
and in the wrong position if passing NSClosableWindowMask to the  
styleMask it also does not become titled if you send:


[weirdWindow setTitle:@"Window Title"];

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 try to get permission to open  
source it.


Thanks for the fun diversion,
Nick

--
Nick Beadman
[EMAIL PROTECTED]
(sent from my mailing list account, [EMAIL PROTECTED])

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 try to get permission to  
open source it.


You may also want to look into the HITheme API, part of the HIToolbox  
framework, which allows you to draw the window frame using the same  
code that Carbon and Cocoa use to draw their windows. You'd pass  
kThemeUtilitySideWindow as the window type in  
HIThemeWindowDrawInfo.windowType field to specify a left-side window  
frame. You would also need to draw the window widgets yourself using  
HIThemeDrawTitleBarWidget.


-eric

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 -draw... functions that take a  
"fraction" argument (for the resulting opacity)?

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 define "wipes out" a bit more precisely.

You might also want to try asking on the applescript-implementors  
list; I think you'll have a better chance of finding help there.


HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 not a recruiter so please don't take this  
opportunity to spam me with your resume.


The application you would be working on is called YPmobile and it is a  
free download from the AppStore.  Please be sure to play with this  
application before contacting me if you are interested.




Here are some of the requirements for this gig:

- Solid experience with Obj-C and familiar with UIKit.

- Minimum of 3 years commercial software experience-  Ideally, tell me  
that you worked on some  product or project I've actually heard of.


- Proven ability to ship commercial applications on time.

- Be a genuinely polite, ethical, nice guy/gal who can handle  
differing points of view with professionalism and be motivated to  
convince others of your genius.  Engineering is never easy but I'm  
looking for people who make it look easy-  people who enjoy  
abstractions and can operate efficiently within them.


- Generally be creative or good at user interface code and also good  
at handling criticism of such code.




I will request a sample of your work, be prepared to show off your  
best code that represents your coding style.  If you cannot provide a  
sample (no matter how small) do not email me.  I am not interested in  
any candidates that cannot (or will not) provide a sample of their work.


Please do not apply if this job sounds weird- or this description is  
too oblique for you-  working under my direction will be weird and  
entertaining (I hope).  It will also be massively rewarding and fun.   
The pay is excellent and I never want any of my staff to work in their  
off time.


Please reply directly to me [and not the list] if this interests you  
in any way.
The position is located in Glendale, CA (Los Angeles) and is a full  
time position.


Thanks and sorry for coercing this list.

best,
alex

I do not represent AT&T or Yellowpages.com so please don't sue them  
for something I wrote here.



__
D O T E A S Y - "Join the web hosting revolution!"
http://www.doteasy.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 applications.


The problem I am having is that to drag out of the WebView the panel  
has to be main (i.e. the close/minimize/zoom buttons are filled in).  
However, if you hold down the command key, the drag out of that window  
works fine.


Where do I start looking to make this work without having to hold down  
the command key?

Thanks,
Nick

[1] -[NSWindow setHidesOnDeactivate:NO] is called from awakeFromNib

--
Nick Beadman
[EMAIL PROTECTED]
(sent from my mailing list account, [EMAIL PROTECTED])

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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  
buttons). If I manage to implement such a thing I will try to get  
permission to open source it.


You may also want to look into the HITheme API, part of the  
HIToolbox framework, which allows you to draw the window frame using  
the same code that Carbon and Cocoa use to draw their windows. You'd  
pass kThemeUtilitySideWindow as the window type in  
HIThemeWindowDrawInfo.windowType field to specify a left-side window  
frame. You would also need to draw the window widgets yourself using  
HIThemeDrawTitleBarWidget.


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 fate of HITheme has been decided, and it is going to be the  
theme drawing API for OS X [1] going forward? The only documentation I  
have found is the header HITheme.h and nowhere in there is mentioned  
it being a 32-bit only API. Given that it uses Quartz parameters this  
makes sense but I want to be sure before I spend time working on an  
under-documented API, especially as it is in Carbon framework. Looking  
at HIView.h it appears to be a safe because those API are documented as:


*  Availability:
*Mac OS X: in version 10.2 and later in Carbon.framework  
[32-bit only]


Thanks,
Nick

[1] Note I said OS X, not Cocoa, not Carbon and not Mac OS X, although  
I will take an answer for any and all of those technologies :-).


--
Nick Beadman
[EMAIL PROTECTED]
(sent from my mailing list account, [EMAIL PROTECTED])

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[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
*** - [NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of 
class (JAStringFormatter)


*** Terminating app due to uncaught exception  
'NSInvalidUncarchiveOperationException', reason:
'*** - [NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of 
class (JAStringFormatter)'


Can anyone tell me how to solve this problem?

Also, I would like to ask if 
"attributedStringForObjectValue:withDefaultAttributes:" is really 
requried to be overriden.
The document says, "To subclass NSFormatter, you must, at the least, 
override the three primitive methods:".


Thank you in advance.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 fate of HITheme has been decided, and it is going to be the  
theme drawing API for OS X [1] going forward?


It has been decided; HITheme is fully supported in 64-bit and is the  
recommended approach for theme-savvy drawing in both Carbon and Cocoa  
apps.


-eric

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 :


An uncaught exception was raised
*** - [NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object  
of class (JAStringFormatter)


*** Terminating app due to uncaught exception   
'NSInvalidUncarchiveOperationException', reason:
'*** - [NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object  
of class (JAStringFormatter)'


Did you implement -[IBPlugin requiredFrameworks] to return your  
framework?


Jon Hess




Can anyone tell me how to solve this problem?

Also, I would like to ask if  
"attributedStringForObjectValue:withDefaultAttributes:" is really  
requried to be overriden.
The document says, "To subclass NSFormatter, you must, at the least,  
override the three primitive methods:".


Thank you in advance.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/jhess%40apple.com

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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, and then use one of the -draw... functions that take a 
"fraction" argument (for the resulting opacity)?


Thanks, that does it.  I had glanced at the draw methods, but "fraction" 
didn't jump out at me, since I was expecting "alpha".

--
  James W. Walker, Innoventive Software LLC
  
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[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 the cocoa-dev-admins list first  
for vetting.


scott
[moderator]

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 text field. But  
if I do this instead:


myInt = 123;

the textfield just shows '0'. What's happening here?

dkj
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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 question, which is a modification of the Downloader
example supplied by Apple:

download = [[WebDownload alloc] initWithRequest:[NSURLRequest
requestWithURL:URL]
delegate:self];

[download setDeletesFileUponFailure:NO];

resumeData = [download resumeData];

if (resumeData == nil)

{

NSLog(@"No resume data :(");

}

Any suggestions?

thanks,
Andrew
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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;

when initialising MyObject, the value shows up in the text field.  
But if I do this instead:


myInt = 123;

the textfield just shows '0'. What's happening here?



The self.myInt runs through the accessor method that was synthesized  
by the runtime, and a KVO notification was sent out. Setting myInt  
directly circumvented the accessor, so no KVO notification was sent,  
since the change occurred behind the back of the runtime. Without that  
KVO notification, the text field doesn't know myInt changed.


Nick Zitzmann


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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, at 9:35 AM, 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;

when initialising MyObject, the value shows up in the text field.  
But if I do this instead:


myInt = 123;

the textfield just shows '0'. What's happening here?

dkj
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


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;

when initialising MyObject, the value shows up in the text field.  
But if I do this instead:


myInt = 123;

the textfield just shows '0'. What's happening here?


Others already answered this, but if (for some reason) you want to do  
this manually, you can enable the KVO as so:


[self willChangeValueForKey:@"myInt"];
myInt = 123;
[self didChangeValueForKey:@"myInt"];

Jason

smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]