Re: Read-Only ABRecord

2008-05-01 Thread Alexander Hartner

That's what I was afraid of :-(

Thanks
Alex
On 1 May 2008, at 03:28, Jens Alfke wrote:



On 30 Apr '08, at 4:47 PM, Alexander Hartner wrote:

I would like to find out how to set a ABRecord as read-only, and if  
a record is configured to be read-only is it possible to edit it in  
the Address Book Application.


I don't think read-only means what you think it does. It's not some  
kind of write protection in the database; it's just a characteristic  
of the in-memory object, kind of like the distinction between  
mutable and non-mutable collections in Foundation.


—Jens


___

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: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Mike Fischer

Am 01.05.2008 um 06:55 schrieb Matt Long <[EMAIL PROTECTED]>:


I execute this code and it successfully copies my file from source to
destination:


[snip]


status returns with no error. However my callback never gets called.


Why do you assume it should be called? You passed a minimum of 1  
second as statusChangeInterval so if the operation is done in less  
than a second then I would not expect it to be called. Even if it  
takes longer the documentation doesn't guarantee anything about when  
it is supposed to trigger the callback AFAICT. Specifically  
documetation does not mention that the callback will be called on  
completion of the operation.


[snip]



Any idea why?


Wrong assumptions?


HTH
Mike
--
Mike Fischer Softwareentwicklung, EDV-Beratung
Schulung, Vertrieb
Note: I read this list in digest mode!
  Send me a private copy for faster responses.

___

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: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Michael Vannorsdel
I read over the docs for this function and not coming to the same  
conclusions.  Being an async function it should be implied the  
callback will be used if the starting function succeeded.  This is the  
whole point of async operations and the only way to get status reports  
from them besides having to poll, which defeats the purpose of async  
operations.  Also, the minimum time argument as the docs explains is  
there to limit the time between multiple calls for a "single  
stage" (ie kFSOperationStageRunning) for flood prevention and doesn't  
apply to stage changes.  Also, the presence of a  
"kFSOperationStageComplete: The file operation is complete." makes it  
pretty clear there should be a status report upon completion.


The only error here I believe, as explained by someone else, is  
forgetting to schedule the event source with the runloop for  
processing.  However after reading the docs I too am lead to believe  
(and know from experience with this function) that the callback is  
used and is called upon completion.




On May 1, 2008, at 1:39 AM, Mike Fischer wrote:


Am 01.05.2008 um 06:55 schrieb Matt Long <[EMAIL PROTECTED]>:


I execute this code and it successfully copies my file from source to
destination:


[snip]


status returns with no error. However my callback never gets called.


Why do you assume it should be called? You passed a minimum of 1  
second as statusChangeInterval so if the operation is done in less  
than a second then I would not expect it to be called. Even if it  
takes longer the documentation doesn't guarantee anything about when  
it is supposed to trigger the callback AFAICT. Specifically  
documetation does not mention that the callback will be called on  
completion of the operation.


[snip]



Any idea why?


Wrong assumptions?


___

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: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread stephen joseph butler
On Wed, Apr 30, 2008 at 7:42 PM, Matt Long <[EMAIL PROTECTED]>
wrote:

>FSPathMakeRef( (const UInt8 *)[[sourceFilePath stringValue]
> cStringUsingEncoding:NSUTF8StringEncoding], &source, NULL );
>Boolean isDir = true;
>FSPathMakeRef( (const UInt8 *)[[destinationFilePath stringValue]
> cStringUsingEncoding:NSUTF8StringEncoding], &destination, &isDir );


Along with the  other comments, I don't think anyone has mention that these
should be -[NSString fileSystemRepresentation].
___

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: Immediate memory release

2008-05-01 Thread Paul Bailey
The class documentation for NSAutoreleasePool notes that release is a no-op
on garbage-collected environments, and one should use drain to give the
garbage collector a hint to do its job (that's my limited understanding).
It notes that drains behaves the same as release in a memory managed
environment, so it's safe to use in both circumstances.

Basically, if there's a chance your code might be garbage-collected, use
drain.

As for new, not sure...

Cheers,

Paul

On Thu, May 1, 2008 at 6:00 AM, j o a r <[EMAIL PROTECTED]> wrote:

>
> On Apr 30, 2008, at 7:27 PM, Jens Alfke wrote:
>
> I also changed the pool calls to the current recommended names: +new and
> > -drain.
> >
>
>
> Can you point me to where the official documentation recommends the use of
> +new over +alloc-init?
>
> Thanks,
>
> j o a r
>
>
>
> ___
>
> 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/bailey%40dreamshake.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]


NSFormatter, NSTextfield and bindings

2008-05-01 Thread Yann Disser
I have a NSTextfield which is bound to some string-valued attribute.  
It is set to update continuously and everything works fine.


As I only want to allow the user to enter numbers, I subclassed  
NSFormatter and attached an instance to the NSTextField "formatter"  
outlet in IB.


Now my attribute gets set exactly ONCE (?) - the very first time I  
enter a valid character in the text field. I found the following with  
google: http://www.cocoabuilder.com/archive/message/cocoa/2007/6/26/185130

and it seems that this behaviour might be intentional... (?!)

How can I obtain the desired behaviour of my text field with  
continuous updates?


This is how my Formatter looks like:

@implementation StrictNumberFormatter

-(NSString*)stringForObjectValue:(id)anObject
{
  if(![anObject isKindOfClass:[NSString class]])
return nil;
  return anObject;
}

-(BOOL)getObjectValue:(id*)obj forString:(NSString*)string
  errorDescription:(NSString**)error
{
  if(obj)
*obj = string;
  return YES;
}

-(BOOL)isPartialStringValid:(NSString*)partialString
  newEditingString:(NSString**)newString
  errorDescription:(NSString**)error
{
  //return YES; //doesn't help either
  if([partialString isEqual:@""])
return YES;
  NSString* correct =
[[NSNumber numberWithInt:[partialString intValue]] stringValue];
  return [correct isEqual: partialString];
}

@end

Thanks for your help,
Yann
___

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: Xcode debugger quality

2008-05-01 Thread Jeff LaMarche


On May 1, 2008, at 9:47 AM, Simon Wilson wrote:

Not sure how you got the impression I'm a C++ or Carbon programmer  
as I didn't mention anything to this effect.


Sorry, it was meant as a general comment, not directed at you, I just  
quoted part of your e-mail because it seemed to sum up the overall  
conversation well, sorry about that.


I really shouldn't check my e-mail before having any caffeine - I'm  
really sorry!  "Bashing" was a poor choice of words on my part - my  
intention was not to chastise so much as to point out that just  
because something is being talked about on the mailing lists doesn't  
mean that it's on Apple's radar to fix or address. Over on Cocoa-Dev,  
we got into quite a heated discussion over a shortcoming in Core Data  
a few weeks ago, and it came out after quite a bit of time that none  
of us involved in the conversation (me included) had opened a bug  
report on the issue.  Just because we've experienced something - even  
many of us - does not mean that people inside One Infinite Loop have,  
or if they have, they may underestimate the severity if nobody's  
reporting.


Of course talking about problems in Xcode is relevant here, but if you  
have a legitimate problem or complaint, you should ALSO file a bug  
report or enhancement request. That was my (poorly communicated)  
point. I'm going to go get some caffeine and hope the group  
forgives.. :)

___

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: Immediate memory release

2008-05-01 Thread Clark Cox
On Thu, May 1, 2008 at 2:05 AM, Paul Bailey <[EMAIL PROTECTED]> wrote:
> The class documentation for NSAutoreleasePool notes that release is a no-op
>  on garbage-collected environments, and one should use drain to give the
>  garbage collector a hint to do its job (that's my limited understanding).
>  It notes that drains behaves the same as release in a memory managed
>  environment, so it's safe to use in both circumstances.

Joar wasn't disputing the use of -drain, he was asking about the use
of +new over +alloc/-init. AFAIK, there is no official documentation
that recommends the former over the latter.

>
>  Basically, if there's a chance your code might be garbage-collected, use
>  drain.
>
>  As for new, not sure...
>
>  Cheers,
>
>  Paul
>
>
>
>  On Thu, May 1, 2008 at 6:00 AM, j o a r <[EMAIL PROTECTED]> wrote:
>
>  >
>  > On Apr 30, 2008, at 7:27 PM, Jens Alfke wrote:
>  >
>  > I also changed the pool calls to the current recommended names: +new and
>  > > -drain.
>  > >
>  >
>  >
>  > Can you point me to where the official documentation recommends the use of
>  > +new over +alloc-init?
>  >
>  > Thanks,
>  >
>  > j o a r
>  >
>  >
>  >
>  > ___
>  >
>  > 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/bailey%40dreamshake.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/clarkcox3%40gmail.com
>
>  This email sent to [EMAIL PROTECTED]
>



-- 
Clark S. Cox III
[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: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Mike Fischer

Am 01.05.2008 um 16:18 schrieb Michael Vannorsdel <[EMAIL PROTECTED]>:


I read over the docs for this function and not coming to the same
conclusions.  Being an async function it should be implied the
callback will be used if the starting function succeeded.


The operative word being "should". Not everything that should be is.



  This is the
whole point of async operations and the only way to get status reports
from them besides having to poll, which defeats the purpose of async
operations.  Also, the minimum time argument as the docs explains is
there to limit the time between multiple calls for a "single
stage" (ie kFSOperationStageRunning) for flood prevention and doesn't
apply to stage changes.  Also, the presence of a
"kFSOperationStageComplete: The file operation is complete." makes it
pretty clear there should be a status report upon completion.

The only error here I believe, as explained by someone else, is
forgetting to schedule the event source with the runloop for
processing.  However after reading the docs I too am lead to believe
(and know from experience with this function) that the callback is
used and is called upon completion.



Rereading all of the documentation (not just that for the  
FSCopyObjectASync function) I have to agree with your analysis. It's  
interesting though that the OP reported that the copy operation  
itself worked fine, apparently without any runloop support.


Thanks for making sense of the sparse documentation ;-)


Mike
--
Mike Fischer Softwareentwicklung, EDV-Beratung
Schulung, Vertrieb
Note: I read this list in digest mode!
  Send me a private copy for faster responses.

___

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]


Text attachment not deleted from NSTextView

2008-05-01 Thread Luong Dang

Hi all,

I'm having a problem with NSTextView: I programmatically insert an  
image attachment into an NSTextView. However, when I delete the text  
from my GUI the image didn't go away, even though from the code, I can  
see that NSAttachmentCharacter is removed from my attributed string.


Here's the code I'm using:

NSFileWrapper * fw = [[NSFileWrapper alloc]  
initWithPath:@"somefile.gif"];
NSTextAttachment * attachment = [[NSTextAttachment alloc]  
initWithFileWrapper:fw];
NSAttributedString * string = [NSAttributedString  
attributedStringWithAttachment:attachment];


[[textView textStorage] appendAttributedString: string];

Some additional info if they help:
* The image is an animated gif file
* I use automatic garbage collection - could it be that GC is not  
finalizing my objects in time?


Thanks,
Luong.

___

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]


Rotating an NSTableView.

2008-05-01 Thread Peter Hudson

I have an NSTable View inside an NSSplitView.
I rotate the table view by sending   rotateByAngle:270  to the  
enclosing scroll view.

The table lands up exactly as I want it with vertical rows.

The problem is that when I resize the split view the NSTableView does  
not change size to fit the split view movement as it does when the  
table is not rotated.


Does anyone have any idea what is going on.  I've tried all the usual  
games with setting frame and bounds etc - but to no avail.


Peter

___

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: Trouble with NSPopUpButton and hierarchical menus?

2008-05-01 Thread John Stiles

Oh, is that the problem? I didn't see a Hidden checkbox. I'll look again.
Guess it's Radar time.

Graham Cox wrote:
I can confirm this bug, it's the same (or similar to) one I mentioned 
a few months ago but had some trouble reproducing at the time. I 
thought it was related to importing older IB files, but I can make it 
happen with any.


Create a pop-up button. Set it to "pull down" mode. The first menu 
item is hidden, as it should be. Drag a new menu item to the menu. It 
will cause all items except the one dragged in to be set to "hidden". 
If you don't notice this then the items obviously don't show up at 
runtime. You can select all and set them to visible, then go back and 
set the first item back to hidden as a workaround.


G.



On 1 May 2008, at 10:37 am, Peter Ammon wrote:


On Apr 30, 2008, at 3:58 PM, John Stiles wrote:


I've been trying to create an NSPopUpButton in IB3, in pull-down mode,
that has a submenu. It doesn't seem to work properly though. After I
drag in the "Menu >" item into the pop-up button's menu, the pop-up
seems to be irrevocably broken-it randomly neglects to display some
items, or fails to show a menu at all when clicked. Even after removing
the submenu, oftentimes the button is left in a weird state and 
needs to

be completely deleted and rebuilt in order to function normally again.



Is this a known issue? I vaguely remember that pop-up buttons
"shouldn't" have submenus, but I'm not sure that was supposed to apply
to pull-down buttons, and IB3 certainly isn't enforcing any limitation
here. All the same, the behavior is clearly broken.



I can file a radar if needed.


Hi John,

I'm not familiar with the problems you mention; please file a bug.

Thanks,
-Peter
___

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/graham.cox%40bigpond.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: Immediate memory release

2008-05-01 Thread Ken Thomases

On Apr 30, 2008, at 10:35 PM, Melissa J. Turner wrote:

NSAutoreleasePool *pool = [NSAutoreleasePool new];
id exception;


Should be initialized to nil:

id exception = nil;


@try {
// insert code here
} @catch (NSException *ex) {
exception = [ex retain];
@throw ex;
} @finally {
[pool drain];
if (exception) {
[exception autorelease];
}
}

(Disclaimer: coded in mail)


-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]


Re: Trouble with NSPopUpButton and hierarchical menus?

2008-05-01 Thread John Stiles

Yup, that was the problem. Thanks for figuring this out, Graham.
rdar://5903558[IB3] Items in pull-down-style NSPopUpButtons enable 
"hidden" for no reason



John Stiles wrote:

Oh, is that the problem? I didn't see a Hidden checkbox. I'll look again.
Guess it's Radar time.

Graham Cox wrote:
I can confirm this bug, it's the same (or similar to) one I mentioned 
a few months ago but had some trouble reproducing at the time. I 
thought it was related to importing older IB files, but I can make it 
happen with any.


Create a pop-up button. Set it to "pull down" mode. The first menu 
item is hidden, as it should be. Drag a new menu item to the menu. It 
will cause all items except the one dragged in to be set to "hidden". 
If you don't notice this then the items obviously don't show up at 
runtime. You can select all and set them to visible, then go back and 
set the first item back to hidden as a workaround.


G.



On 1 May 2008, at 10:37 am, Peter Ammon wrote:


On Apr 30, 2008, at 3:58 PM, John Stiles wrote:


I've been trying to create an NSPopUpButton in IB3, in pull-down mode,
that has a submenu. It doesn't seem to work properly though. After I
drag in the "Menu >" item into the pop-up button's menu, the pop-up
seems to be irrevocably broken-it randomly neglects to display some
items, or fails to show a menu at all when clicked. Even after 
removing
the submenu, oftentimes the button is left in a weird state and 
needs to

be completely deleted and rebuilt in order to function normally again.



Is this a known issue? I vaguely remember that pop-up buttons
"shouldn't" have submenus, but I'm not sure that was supposed to apply
to pull-down buttons, and IB3 certainly isn't enforcing any limitation
here. All the same, the behavior is clearly broken.



I can file a radar if needed.


Hi John,

I'm not familiar with the problems you mention; please file a bug.

Thanks,
-Peter
___

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/graham.cox%40bigpond.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/jstiles%40blizzard.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]


[SOLVED] Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Matt Long
Thanks for the help. The first response I got (Steve) was the correct  
one for what I was needing. I didn't correctly schedule with the run  
loop.


Here's a couple of points

Mike Fischer suggested that the operation was completing in less time  
than the one second specified. This is a good thought, but the file  
I'm copying is about 1GB (video file).


John Daub suggested that it might be a C++ issue. It doesn't appear  
that this is the issue. I've gotten it working without specifying the  
extern C pre-processor calls. Thanks, though.


Stephen Butler pointed out that I need to use -[NSString  
fileSystemRepresentation]. I have switched to this and it works. I not  
real familiar with this call, but it looks like it's working. I'll  
look into why this is the better choice. I'm just not familiar.


Anyhow, thanks again. If you would like to see the completed code,  
write me offline. I am updating a progress indicator in the callback.  
Seems to work pretty well.


-Matt
___

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: Text attachment not deleted from NSTextView

2008-05-01 Thread Stéphane Sudre


On May 1, 2008, at 4:51 PM, Luong Dang wrote:

Hi all,

I'm having a problem with NSTextView: I programmatically insert an  
image attachment into an NSTextView. However, when I delete the  
text from my GUI the image didn't go away, even though from the  
code, I can see that NSAttachmentCharacter is removed from my  
attributed string.


Here's the code I'm using:

NSFileWrapper * fw = [[NSFileWrapper alloc]  
initWithPath:@"somefile.gif"];
NSTextAttachment * attachment = [[NSTextAttachment alloc]  
initWithFileWrapper:fw];
NSAttributedString * string = [NSAttributedString  
attributedStringWithAttachment:attachment];


[[textView textStorage] appendAttributedString: string];

Some additional info if they help:
* The image is an animated gif file
* I use automatic garbage collection - could it be that GC is not  
finalizing my objects in time?


How do you delete the text? Code or keyboard?

Couldn't it just be a refresh missing?


___

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]


trouble debugging input method remotely

2008-05-01 Thread Daniel Child
I am trying to set up remote debugging for input methods using Xcode.  
For starters, I'm trying to use Apple's sample, but am having a number  
of issues.


One is that I am not sure where/how to set up the shared build  
location in the case of an input method. To run an input method, you  
need to drop it into Library"Input Methods", but remote debugging  
usually suggests setting up a shared location like /Users/Shared/ 
Projects or the like. Can input methods be run from such a location  
during debugging?


Secondly, I'm confused about the use of symbolic links for the latter  
(shared location). I have authorized access using ssh-keygen. That  
works fine. The problem is that when I try to debug gdb says the  
executable is not found based on the symbolic link I set up.


Here's where I'm unclear. If the LOCAL computer (the one that will be  
used to develop and run the debugging) has its build location set to:


/Users/Shared/MyInputMethod

then on REMOTE (the computer used to execute the input method during  
debugging), should the link be inside a folder (on REMOTE) called / 
Users/Shared/MyInputMethod or should the link itself be found at / 
Users/Shared/MyInputMethod? (My guess is at, but at this point neither  
approach is working.)


And is it correct to have the link placed on REMOTE (the executable  
host) point to:


/Volumes//Users/Shared/MyInputMethod ???

Thanks for looking.

(PS: I've already done the step of setting up remote debugging in  
Xcode and that seems to work. Problem is the link files not in the  
correct location.) When I set links as described above, the console  
errors are as follows (project called NumberInput0):


(ssh login succeeds)
This GDB was configured as "powerpc-apple-darwin"./Users/Shared/ 
NumberInput0/Debug/NumberInput.app/Contents/MacOS/NumberInput: No such  
file or directory.
/Users/Shared/NumberInput0/Debug/NumberInput.app/Contents/MacOS/ 
NumberInput: No such file or directory.

/Users/Shared/NumberInput0/Debug: No such file or directory.
sharedlibrary apply-load-rules all
(gdb) run
Running…
No executable file specified.
Use the "file" or "exec-file" command.
No executable file specified.
Use the "file" or "exec-file" command.

___

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]


Programmatic "Size To Fit"

2008-05-01 Thread Randall Meadows
I am creating a bunch of controls (at least NSTextfield,  
NSPopupButton, NSSlider, and perhaps others) programmatically (that  
will eventually be shown in an NSTableView), and would like to apply  
the "Size To Fit" feature that IB provides.  However, there doesn't  
seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or am  
I missing the appropriate call in the NSView API?


Thanks!
randy
___

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: [SOLVED] Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread stephen joseph butler
On Thu, May 1, 2008 at 12:03 PM, Matt Long <[EMAIL PROTECTED]>
wrote:

> Stephen Butler pointed out that I need to use -[NSString
> fileSystemRepresentation]. I have switched to this and it works. I not real
> familiar with this call, but it looks like it's working. I'll look into why
> this is the better choice. I'm just not familiar.


For almost all intents and purposes, it returns UTF-8, because that's what
the APIs to HFS+, et al expect. However, it's conceivable that some file
system might want path strings in another (legacy) format. Say, Shift_JIS,
Big5, or KOI8-R.

I'm not sure any do. I'm not even sure the vfs layer allows the fs to
register a preference. But there's a function for it, so you might as well
use it.
___

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: Programmatic "Size To Fit"

2008-05-01 Thread Martin

What about NSControl's sizeToFit method?

-Martin

On May 1, 2008, at 7:39 PM, Randall Meadows wrote:

I am creating a bunch of controls (at least NSTextfield,  
NSPopupButton, NSSlider, and perhaps others) programmatically (that  
will eventually be shown in an NSTableView), and would like to apply  
the "Size To Fit" feature that IB provides.  However, there doesn't  
seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or  
am I missing the appropriate call in the NSView API?


Thanks!
randy
___

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/martin.cocoa%40gmail.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: [SOLVED] Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Clark Cox
On Thu, May 1, 2008 at 10:43 AM, stephen joseph butler
<[EMAIL PROTECTED]> wrote:
> On Thu, May 1, 2008 at 12:03 PM, Matt Long <[EMAIL PROTECTED]>
>  wrote:
>
>
>  > Stephen Butler pointed out that I need to use -[NSString
>  > fileSystemRepresentation]. I have switched to this and it works. I not real
>  > familiar with this call, but it looks like it's working. I'll look into why
>  > this is the better choice. I'm just not familiar.
>
>
>  For almost all intents and purposes, it returns UTF-8,

It returns UTF-8, but with a very specific Unicode composition:


>  because that's what
>  the APIs to HFS+, et al expect. However, it's conceivable that some file
>  system might want path strings in another (legacy) format. Say, Shift_JIS,
>  Big5, or KOI8-R.

When you think about this, it is really not possible, as
fileSystemRepresentation works on any string, including those that do
not represent existing files. There is no way to know, in general,
which filesystem a particular path will live on.

>
>  I'm not sure any do. I'm not even sure the vfs layer allows the fs to
>  register a preference. But there's a function for it, so you might as well
>  use it.



-- 
Clark S. Cox III
[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: Programmatic "Size To Fit"

2008-05-01 Thread John Stiles

There is in fact an API, -sizeToFit.


Randall Meadows wrote:
I am creating a bunch of controls (at least NSTextfield, 
NSPopupButton, NSSlider, and perhaps others) programmatically (that 
will eventually be shown in an NSTableView), and would like to apply 
the "Size To Fit" feature that IB provides.  However, there doesn't 
seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or am 
I missing the appropriate call in the NSView API?


Thanks!
randy
___

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/jstiles%40blizzard.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: trouble debugging input method remotely

2008-05-01 Thread Daniel Child
People from Apple who develop input methods told me as much.  
Presumably, since you are typing from the keyboard to test the input  
method itself, having it run on the same computer causes problems: you  
are trying to allow the interaction with the executable to be natural,  
but how do you know keyboard input is intended for Xcode or the client  
application (like TextEdit, which "hosts" the test).



On May 1, 2008, at 1:42 PM, j o a r wrote:



On May 1, 2008, at 10:39 AM, Daniel Child wrote:

Input methods run in the background and need to be debugged  
remotely



Why? Do you have any links to documentation that states that this is  
a requirement?


j o a r




___

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: Programmatic "Size To Fit"

2008-05-01 Thread Randall Meadows

On May 1, 2008, at 11:45 AM, Martin wrote:

What about NSControl's sizeToFit method?


I guess I didn't mean "controls" exclusively; I should have stuck with  
"views", as (at least) one of the things I need to create is an NSBox  
that contains multiple controls.  Which is why I was looking in NSView  
for the right call.  But yeah, that'll work for the majority of things  
I need to create.


And now that I think about itI don't really need (nor want) for  
the box to have a border, so perhaps I can manipulate it just  
encompass the sized-to-fit controls in it.  But still, is there no  
such beast for NSViews?


While I'm at it...is there no way to create an NSMatrix of  
NSPopupButtons?  I can't seem to manage it in IB, and I'm not yet at  
the point to try it in my code.



Martin

On May 1, 2008, at 7:39 PM, Randall Meadows wrote:

I am creating a bunch of controls (at least NSTextfield,  
NSPopupButton, NSSlider, and perhaps others) programmatically (that  
will eventually be shown in an NSTableView), and would like to  
apply the "Size To Fit" feature that IB provides.  However, there  
doesn't seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or  
am I missing the appropriate call in the NSView API?


Thanks!
randy
___

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/martin.cocoa%40gmail.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: Programmatic "Size To Fit"

2008-05-01 Thread Michael Watson
Others have mentioned -[NSControl sizeToFit], but I thought it was  
worth reminding that when you can't find a method to do what you want  
in a given class, remember to check its superclasses for methods the  
class inherits for what you seek.



--
m-s


On 01 May, 2008, at 13:39, Randall Meadows wrote:
I am creating a bunch of controls (at least NSTextfield,  
NSPopupButton, NSSlider, and perhaps others) programmatically (that  
will eventually be shown in an NSTableView), and would like to apply  
the "Size To Fit" feature that IB provides.  However, there doesn't  
seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or  
am I missing the appropriate call in the NSView API?


Thanks!
randy
___

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/mikey-san 
%40bungie.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: [SOLVED] Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Douglas Davidson


On May 1, 2008, at 10:43 AM, stephen joseph butler wrote:

On Thu, May 1, 2008 at 12:03 PM, Matt Long <[EMAIL PROTECTED] 
long.com>

wrote:


Stephen Butler pointed out that I need to use -[NSString
fileSystemRepresentation]. I have switched to this and it works. I  
not real
familiar with this call, but it looks like it's working. I'll look  
into why

this is the better choice. I'm just not familiar.



For almost all intents and purposes, it returns UTF-8, because  
that's what
the APIs to HFS+, et al expect. However, it's conceivable that some  
file
system might want path strings in another (legacy) format. Say,  
Shift_JIS,

Big5, or KOI8-R.

I'm not sure any do. I'm not even sure the vfs layer allows the fs to
register a preference. But there's a function for it, so you might  
as well

use it.


It's not that this varies from one file system to another on the same  
machine, but rather that the BSD/Posix layer of APIs have a specific  
representation for file system names, and this method insulates you  
from the details of that representation.


Douglas Davidson

___

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: Programmatic "Size To Fit"

2008-05-01 Thread Rob Napier

The method is called -sizeToFit.

-Rob

On May 1, 2008, at 1:39 PM, Randall Meadows wrote:

I am creating a bunch of controls (at least NSTextfield,  
NSPopupButton, NSSlider, and perhaps others) programmatically (that  
will eventually be shown in an NSTableView), and would like to apply  
the "Size To Fit" feature that IB provides.  However, there doesn't  
seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or  
am I missing the appropriate call in the NSView API?


Thanks!
randy

___

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: Programmatic "Size To Fit"

2008-05-01 Thread John Stiles
An NSView doesn't have an associated cell, so "size to fit" doesn't 
really have a meaningful answer. Size-to-fit works by asking the cell 
what size it should be.


For a box, you could just enumerate the subviews and get the union of 
all the subview frames.



Randall Meadows wrote:

On May 1, 2008, at 11:45 AM, Martin wrote:

What about NSControl's sizeToFit method?


I guess I didn't mean "controls" exclusively; I should have stuck with 
"views", as (at least) one of the things I need to create is an NSBox 
that contains multiple controls.  Which is why I was looking in NSView 
for the right call.  But yeah, that'll work for the majority of things 
I need to create.


And now that I think about itI don't really need (nor want) for 
the box to have a border, so perhaps I can manipulate it just 
encompass the sized-to-fit controls in it.  But still, is there no 
such beast for NSViews?


While I'm at it...is there no way to create an NSMatrix of 
NSPopupButtons?  I can't seem to manage it in IB, and I'm not yet at 
the point to try it in my code.



Martin

On May 1, 2008, at 7:39 PM, Randall Meadows wrote:

I am creating a bunch of controls (at least NSTextfield, 
NSPopupButton, NSSlider, and perhaps others) programmatically (that 
will eventually be shown in an NSTableView), and would like to apply 
the "Size To Fit" feature that IB provides.  However, there doesn't 
seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or 
am I missing the appropriate call in the NSView API?


Thanks!
randy
___

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/martin.cocoa%40gmail.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/jstiles%40blizzard.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: trouble debugging input method remotely

2008-05-01 Thread Daniel Child
I should have been clearer explaining why you need remote debugging.  
The focus while test-typing the input method will be something like  
TextEdit. You cannot be "inside" TextEdit and Xcode at the same time.  
You are either typing in one app or the other.


So the idea is to run the executable on a remote computer, using some  
client (Word / TextEdit, whatever), while running Xcode on the local  
computer to debug. At least, that's how I understand it.


FWIW, I tried simply copying the build folder over to the mirror UNIX  
path on remote (/Users/Shared/ and still got an error.


(following successful authentication)

This GDB was configured as "powerpc-apple-darwin".Architecture of file  
not recognized.

Architecture of file not recognized.
Working directory /Users/Shared/NumberInput0/Debug.
sharedlibrary apply-load-rules all
(gdb) run
Running…
[Switching to process 483 local thread 0x1203]
You can't do that without a process to debug.
You can't do that without a process to debug.

I'm wondering about the architecture not being recognized. Is this an  
Intel vs PPC thing or something else? My LOCAL computer is an Intel,  
the REMOTE is a PPC Since this was Apple's sample, I'm leaving the  
SDK/target as is since presumably those are the settings they  
used???


On May 1, 2008, at 1:42 PM, j o a r wrote:



On May 1, 2008, at 10:39 AM, Daniel Child wrote:

Input methods run in the background and need to be debugged  
remotely



Why? Do you have any links to documentation that states that this is  
a requirement?


j o a r




___

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: trouble debugging input method remotely

2008-05-01 Thread j o a r


On May 1, 2008, at 11:31 AM, Daniel Child wrote:

I should have been clearer explaining why you need remote debugging.  
The focus while test-typing the input method will be something like  
TextEdit. You cannot be "inside" TextEdit and Xcode at the same  
time. You are either typing in one app or the other.


So the idea is to run the executable on a remote computer, using  
some client (Word / TextEdit, whatever), while running Xcode on the  
local computer to debug. At least, that's how I understand it.



That's what I figured, and my question was if you couldn't use the  
Xcode Mini Debugger instead of having to set up remote debugging. I'm  
not sure if you could, but it would be easier, and probably worth a try.


j o a r



___

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: Programmatic "Size To Fit"

2008-05-01 Thread RICKY SHARP
 On Thursday, May 01, 2008, at 01:14PM, "John Stiles" <[EMAIL PROTECTED]> wrote:
>An NSView doesn't have an associated cell, so "size to fit" doesn't 
>really have a meaningful answer. Size-to-fit works by asking the cell 
>what size it should be.
>
>For a box, you could just enumerate the subviews and get the union of 
>all the subview frames.
> 
>Randall Meadows wrote:
>> On May 1, 2008, at 11:45 AM, Martin wrote:
>>> What about NSControl's sizeToFit method?
>>
>> I guess I didn't mean "controls" exclusively; I should have stuck with 
>> "views", as (at least) one of the things I need to create is an NSBox 
>> that contains multiple controls.  Which is why I was looking in NSView 
>> for the right call.  But yeah, that'll work for the majority of things 
>> I need to create.
>>
>> And now that I think about itI don't really need (nor want) for 
>> the box to have a border, so perhaps I can manipulate it just 
>> encompass the sized-to-fit controls in it.  But still, is there no 
>> such beast for NSViews?
>>
>> While I'm at it...is there no way to create an NSMatrix of 
>> NSPopupButtons?  I can't seem to manage it in IB, and I'm not yet at 
>> the point to try it in my code.
>>
>>> Martin
>>>
>>> On May 1, 2008, at 7:39 PM, Randall Meadows wrote:
>>>
 I am creating a bunch of controls (at least NSTextfield, 
 NSPopupButton, NSSlider, and perhaps others) programmatically (that 
 will eventually be shown in an NSTableView), and would like to apply 
 the "Size To Fit" feature that IB provides.  However, there doesn't 
 seem to be any API that does that.

 Does IB simply brute-force the resizing for every type of view, or 
 am I missing the appropriate call in the NSView API?

Just to throw this out there to...

IB's size-to-fit function is still very much a mystery.  For all my IB palettes 
(IB 2.x) and plug-ins (IB 3.x), I added a custom mySizeToFit method for most of 
my controls.  Then, the inspector had a button that would invoke that method.  
As much as possible, it would rely on framework routines such as cellSize to 
return an appropriate size for each cell.

Multi-cell controls would of course need to do a proper union and optionally 
space things out too.  At the end of the method, I would then do a setFrame (or 
was that setSize?)

Anyhow, I found it really weird that IB's size to fit menu never would invoke 
sizeToFit in code.  breakpoints and logging lines never were hit.  There's 
still a bit of IB magic going on where I think IB will only do work for 
specific classes.

The other nice thing of your own sizeToFit methods is that you could then add 
it to your view classes too.  I would recommend perhaps a protocol you could 
mix in to all your views/controls that needed such an API.  And, if you're 
doing IB palettes/plug-ins, you'd have something you could tap into as well.

--
Rick Sharp
Instant Interactive(tm)


___

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]


Cocoa Developer Needed

2008-05-01 Thread Darren Tessitore
Location: Montvale, NJ

Salary: Open 

Relocation: For the right candidate

Info: This is a Full-Time position 

 

Overview:

Our client is seeking an low to mid level Mac Cocoa Developer with 2+ years 
experience to maintain, troubleshoot and extend existing codebase of internal 
Cocoa (Objective-C) frameworks and applications, PostgreSQL databases, and web 
resources. 


Required Knowledge/Experience:

· Mac OS X (from both a user's and developer's prospective) absolutely 
required

· Xcode Development Environment

· Objective-C Programming Language absolutely required

· Cocoa frameworks and concepts

· SQL and RDBMS design (PostgreSQL or similar)

· Object-oriented design principles (MVC)

 

Desired Knowledge & Skills:

· Enterprise Telephony Concepts

· 4D RDBMS

· Active4D dynamic web environment

· HTML, CSS, Javascript

· XML, DocBook, XSLT, XSL-FO

· Mac OS X Server

 

If interested please send your resume to [EMAIL PROTECTED] and refer to Job # 
08050101


___

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: Programmatic "Size To Fit"

2008-05-01 Thread Stuart Malin
SizeToFit will expand horizontally. If you need to constrain  
horizontal width...  here's some code I use resize NSTextField  
instances vertically while constraining the horizontal width to fit  
within some contained view.  I believe this approach would work with  
other sorts of controls. Adapt to your needs...


	float targetWidth = <>;		// subtract  
4 for 2 pixel gutter on either side


// resize the textField to make all the text visible
	NSRect r = NSMakeRect(0, 0, targetWidth, MAXFLOAT);		// confining  
bounds: limited width, huge height
	NSSize s = [[textfield cell] cellSizeForBounds:r];		// returns  
minimum size needed to hold the receiver

s.width = targetWidth;  // 
force to consistent width
	[textfield setFrameSize:s];	// and now set the textField's frame  
size


In my application, the textfield sits within some other view  
(theContentView), and I get its width thus:


	float targetWidth = [theContentView frame].size.width - 4.0;	//  
subtract 4 for 2 pixel gutter on either side


If you have an existing control and want its width to remain fixed,  
you could always get its current width and use this as the targetWidth.


HTH,
--Stuart



On May 1, 2008, at 7:58 AM, [EMAIL PROTECTED] wrote:


Message: 10
Date: Thu, 1 May 2008 11:39:42 -0600
From: Randall Meadows <[EMAIL PROTECTED]>
Subject: Programmatic "Size To Fit"
To: cocoa-dev cocoa-dev 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I am creating a bunch of controls (at least NSTextfield,
NSPopupButton, NSSlider, and perhaps others) programmatically (that
will eventually be shown in an NSTableView), and would like to apply
the "Size To Fit" feature that IB provides.  However, there doesn't
seem to be any API that does that.

Does IB simply brute-force the resizing for every type of view, or am
I missing the appropriate call in the NSView API?

Thanks!
randy


___

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: beginSheetModalForWindow: and Distributed Objects

2008-05-01 Thread Andrew Kimpton


On May 1, 2008, at 1:52 AM, Michael Vannorsdel wrote:

I'm fairly certain this method keeps the loop in default mode; the  
docs are probably copy and pasted or contain archaic info.


Just to recap, how do you know messages are not being processed?   
And where are these originating, another process, a secondary  
thread?  When you end the sheet does a burst of messages suddenly go  
through?


I'm not quite sure what was going on before - but everything is now  
working fine in the manner you and I (and Mike) would entirely expect  
it to. No need to worry about adding a different run loop mode, just  
set up the connection and call beginSheetModalForWindow:


It's possible some other sending side error was causing me to think  
that messages were not being delivered, then the documentation did  
nothing to reassure me that I didn't need special handling or somesuch.


Andrew 8-)


On Apr 30, 2008, at 3:29 PM, Andrew Kimpton wrote:

I'm simply calling beginSheetModalForWindow: on  a 'regular' window  
(this isn't a document based app - but the window in question isn't  
modal either).


So from Mike Ash's comments it seems like something else must be  
going on. What set me down this path is the comment in the docs for  
[NSApplcation beginSheet: modalForWindow: ...] (which I assume  
[NSAlert beginSheetModalForWindow: calls ?)


Use this method in cases where you do not need to do any additional  
background processing while your sheet runs. This method consumes  
only enough CPU time to process events and dispatch them to the  
action methods associated with the sheet. If you want to perform  
additional background processing, use runModalSession:together with  
an NSModalSession object instead.


The comment about additional background processing is confusing to  
me. Does handling messages on an NSConnection count as background  
processing ? Do I have to go to the expense of using  
runModalSession: (Mike Ash's comments seem to suggest not, it  
should 'just work')


Bottom line - it sounds like beginSheetModalForWindow shouldn't  
block connection handling but it seems to in my case - where should  
I look begin to look for the cause of 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/awk%40awkward.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: beginSheetModalForWindow: and Distributed Objects

2008-05-01 Thread Michael Vannorsdel
Great to hear.  Bugs or departures from documentation are not rare,  
especially with APIs that started at or before Cheetah (10.0).  So  
sometimes things don't work as expected or documentation is misleading  
or confusing.  The docs for this method should probably be revisited  
by Apple.



On May 1, 2008, at 2:14 PM, Andrew Kimpton wrote:

'm not quite sure what was going on before - but everything is now  
working fine in the manner you and I (and Mike) would entirely  
expect it to. No need to worry about adding a different run loop  
mode, just set up the connection and call beginSheetModalForWindow:


It's possible some other sending side error was causing me to think  
that messages were not being delivered, then the documentation did  
nothing to reassure me that I didn't need special handling or  
somesuch.


___

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: Rotating an NSTableView.

2008-05-01 Thread Corbin Dunn


On May 1, 2008, at 8:27 AM, Peter Hudson wrote:

I have an NSTable View inside an NSSplitView.
I rotate the table view by sending   rotateByAngle:270  to the  
enclosing scroll view.

The table lands up exactly as I want it with vertical rows.


That's cool!




The problem is that when I resize the split view the NSTableView  
does not change size to fit the split view movement as it does when  
the table is not rotated.


Does anyone have any idea what is going on.  I've tried all the  
usual games with setting frame and bounds etc - but to no avail.


Is your splitview splitting horizontal or vertical?

Have you tried rotating the enclosing scrollview instead of the table  
itself?


Have you tried manually calling -tile on the table?

Note: I haven't tried this myselfthese are just things that came  
to mind.


corbin
___

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]


NSWindow With IB

2008-05-01 Thread Philip Bridson

Hi There,

Is there any way to create a Window with no title-bar in IB? I want  
one that is only displayed while the app launches like many apps do.  
I create all my windows with IB and I know that I can use  
NSBorderlessWindowMask if I create one programatically but is there  
anyway of doing it in IB as my current window loads with a title bar.  
I don't mind manipulating it with code if I have to.


Many thanks,

Phil.
___

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: NSWindow With IB

2008-05-01 Thread Kyle Sluder
On Thu, May 1, 2008 at 4:53 PM, Philip Bridson <[EMAIL PROTECTED]> wrote:
> I don't mind manipulating it with code if I have to.

Subclass NSWindow and override
-initWithContentRect:styleMask:backing:defer to pass your custom
window mask to super's implementation.  Then in the identity pane of
IB, set the class of the window to your custom class.  At runtime,
things should Just Work(TM).

--Kyle Sluder
___

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: NSWindow With IB

2008-05-01 Thread Philip Bridson
Why is it that when you get the answer you always wonder why you  
hadn't thought of it yourself? I've done this method so many times  
with other classes but it just didn't occur to me. Never-mind.


Thank you for your help.

Phil.

On 1 May 2008, at 21:58, Kyle Sluder wrote:

On Thu, May 1, 2008 at 4:53 PM, Philip Bridson  
<[EMAIL PROTECTED]> wrote:

I don't mind manipulating it with code if I have to.


Subclass NSWindow and override
-initWithContentRect:styleMask:backing:defer to pass your custom
window mask to super's implementation.  Then in the identity pane of
IB, set the class of the window to your custom class.  At runtime,
things should Just Work(TM).

--Kyle Sluder


___

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]


NSArrayController issue

2008-05-01 Thread Måns Severin

Hi,

I've been working with an NSArrayController containing CoreData entity  
objects.
I've created a segmented control for cycling through these object  
(similar to Safari's Back/Forward buttons).
For some reason, after calling the NSArrayController methods  
selectNext: and selectPrevious: from my controller object, the  
canSelectNext and canSelectPrevious controller keys doesn't reflect  
the new selection.


In the code i provide I have a stepProjects: action called from the  
segmented control (oStepper), it calls the oProjectsController to  
select next/previous records. It then updates the UI which sets  
enabled flags for the segments in the segment control. Problem is,
canSelectPrevious and canSelectNext does not return correct value even  
if the array controller has selected the first or last element. If I  
instead of the [self updateUI] call create an NSTimer object, which in  
turn does an updateUI call after a 0.2 second delay, I get a correct  
update of the segment control.


Is there some kind of delegate / observer method of the  
NSArrayController to see when it is done changing selection?


I wouldn't have had this problem if I could bind the segments directly  
in Interface Builder, but I am not able to do that.

Anyone have had the same issue?

Best Regards
Måns Severin


Code Listing:

- (void)updateUI
{
[self updateStepper];
}

- (IBAction)stepProjects:(id)sender
{
switch ( [oStepper selectedSegment] )
{
case 0:
[oProjectsController selectPrevious:self];
break;

case 1:
[oProjectsController selectNext:self];
break;
}

[self updateUI];
}

- (void)updateStepper
{
	[oStepper setEnabled:[oProjectsController canSelectPrevious]  
forSegment:0];

[oStepper setEnabled:[oProjectsController canSelectNext] forSegment:1];
}___

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]


NSPopUpButton doesn't show list when used inside a menu item

2008-05-01 Thread Angel Todorov
Hi,
I have a regular menu (File menu) for my app. One of the menu items (New
...)  is a custom view , which happens to contain a NSPopUpButton (i.e.
simple drop down). I create that by linking / connecting (Ctrl + drag) the
"New..." item to my custom view. At runtime,  the drop down is correctly
populated, but when i click the arrow to show the list of values, it doesn't
expand. It works fine when used in the default window of my application.

Is it possible to have a PopUpButton inside a MenuItem itself? Thanks very
much for the feedback.

P.S: A combo box control also doesn't open / expand when used in a
menuitem.

Angel
___

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: LED backlight control?

2008-05-01 Thread Michael Vannorsdel

Checkout this code sample:

http://osxbook.com/book/bonus/chapter10/light

it shows setting the display brightness and dealing with the ambient  
light sensor on portables using IOKit.



On May 1, 2008, at 3:05 PM, Rick Mann wrote:

Hi. I was posting questions on Carbon Dev, but this is probably more  
appropriate.


I'm interested in developing a utility that allows the user to dim  
the screen and change the output to red, for very dark area use  
(i.e. astronomy). I've figured out how to use  
CGSetDisplayTransferByFormula() to make the screen red, and I can  
even make it fairly dark, but it's still far too bright.


While CCFL backlights can only dim so far, LED backlights can  
theoretically dim all the way to "off." However, the standard  
backlight controls don't go anywhere near "off" before turning the  
backlight all the way off.


Is there any way (perhaps even low-level communications with the  
hardware, such as I've seen to get the light sensor and  
accelerometer readings) to programmatically set the backlight level  
very low?


___

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: NSPopUpButton doesn't show list when used inside a menu item

2008-05-01 Thread John Stiles

Recursive menu tracking? I can't say I'm surprised that this doesn't work :)
Honestly I have to say that this sounds like a really weird UI. I would 
consider a more normal approach (submenus?)



Angel Todorov wrote:

Hi,
I have a regular menu (File menu) for my app. One of the menu items (New
...)  is a custom view , which happens to contain a NSPopUpButton (i.e.
simple drop down). I create that by linking / connecting (Ctrl + drag) the
"New..." item to my custom view. At runtime,  the drop down is correctly
populated, but when i click the arrow to show the list of values, it doesn't
expand. It works fine when used in the default window of my application.

Is it possible to have a PopUpButton inside a MenuItem itself? Thanks very
much for the feedback.

P.S: A combo box control also doesn't open / expand when used in a
menuitem.

Angel
___

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/jstiles%40blizzard.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]


Core Data Debug and Profile Libraries won't install on current 10.5.2

2008-05-01 Thread Hal Mueller
The installer wants build 9C31; it pops an error and exits when it  
sees the wrong build.  With current updates to 10.5.2, I am at build  
9C7010.


rdar://5904950

Hal

___

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: TransformProcessType fails to show menu bar

2008-05-01 Thread Michael Ash
On Thu, May 1, 2008 at 12:52 AM, Michael Ash <[EMAIL PROTECTED]> wrote:
>  So, the actual problem: I set LSUIElement to 1 in my Info.plist and
>  use TransformProcessType to bump to a foreground application. This
>  works except that it fails to show my app's menu bar. Switching to
>  another program and back to mine makes it show correctly.

In the absence of any replies I've gone ahead and filed a bug about
this problem. rdar://5905139 If any Apple employees feel like giving
it some love, your efforts will not go unappreciated.

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: Programmatic "Size To Fit"

2008-05-01 Thread Stéphane Sudre


On May 1, 2008, at 7:39 PM, Randall Meadows wrote:
I am creating a bunch of controls (at least NSTextfield,  
NSPopupButton, NSSlider, and perhaps others) programmatically (that  
will eventually be shown in an NSTableView), and would like to  
apply the "Size To Fit" feature that IB provides.  However, there  
doesn't seem to be any API that does that.


Does IB simply brute-force the resizing for every type of view, or  
am I missing the appropriate call in the NSView API?


You should also take into account when using the sizeToFit message  
referenced by others that the result might not always be as good as  
in IB.


I'm thinking about NSButton and NSTextField for instance.



___

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: Cache Class review (low priority)

2008-05-01 Thread Western Botanicals

Thank you for reviewing this class the previous time.

I have revised this class to take into account all of your suggestions.

How is my code and comments?

Does this class seem useful to anyone?

http://giboneydesigns.com/code/Cacheh12.txt
http://giboneydesigns.com/code/Cachem12.txt

Justin Giboney
(800) 651-4372
[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]


Displaying one NSTextStorage with two sets of temporary attributes

2008-05-01 Thread Adam C.M. Solove
Hello all,

In the episode of Late Night Cocoa on the text system, [
http://www.macdevnet.com/index.php/shows/latenightcocoa/37-latenightcocoa/93-lnc005
] Juan Pablo Claude described a setup with multiple NSLayoutManagers
editing text from the same NSTextStorage and then said, off-hand, that
you might do this if you wanted to display the same text with
different fonts. I am curious if anyone could discuss how this might
be done: displaying the same underlying attributed string, but
formatting it before the NSLayoutManager tries to lay it out and
formatting it back when the NSTextView sends back changes. I cannot
find specific information on subclassing NSLayoutManager to make these
sorts of changes.

(I know there is an Apple demo [TextViewConfig,
http://developer.apple.com/samplecode/TextViewConfig/index.html] which
shows multiple layout managers, but these both render the exact same
attributed string (except that one view has been essentially zoomed to
twice the size). I am curious if it is possible to actually change
temporary attributes in one LayoutManager but not the other, and then
change them back appropriately before sending events to the
NSTextStorage.)

End technical discussion

Begin back story for those interested:

I am a relatively new Cocoa developer working on an open-source
project for academics. I  recently spent considerable time working on
a web-based version of this application before learning that the
hardest part was technically infeasible because of some limitations in
HTML's designmode. In starting with Cocoa, I will be happy if the
project and required learning takes many years, so long as there is an
answer in advance to this one difficult question.

The application is an editor for a specific subset of the TEI XML
guidelines for encoding literary works and scholarly commentaries on
them. The underlying data maps very nicely into an attributed string,
because it is a single text divided up into separate 'series' (main
text, footnotes, cross-links) The series are all anchored together,
but would best be displayed apart, with first the main text, then each
series of notes. I believe the easiest way to do this would be to have
a single underlying NSTextStorage, to attribute every range of text to
one series, and then to create various subclasses (or formatters) for
NSLayoutManager that each display only text in one particular series.
I suspect this could also be done with a custom Typesetter and the
method setNotShownAttribute:forGlyphAtIndex:, but am curious if there
is a more general hook to set attributes on the string before layout.

Thank you,

Adam Solove
___

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]


Interesting NSPathControl Behavior

2008-05-01 Thread Mike Rossetti
So I've discovered an interesting behavior in NSPathControl and am  
wondering if it warrants a Radar.


I'm building up my own presentation of the file path to be shown in  
the NSPathControl.  Specifically, if the file for which the path is  
being presented is in some standard location then I'm abbreviating the  
path.  As a simple example, if the file is in ~/Documents/FIle.txt  
then instead of:


Users > User A > Documents > File.txt

I will show:

Documents > File.txt

The approach I'm taking is to pass a payload (an NSArray) to my  
customization of NSPathControl's setObjectValue.  In setObjectValue I  
compose a string ("/Documents/File.txt") that I pass on to [super  
setObjectValue:], which sets up the NSPathComponentCells just fine.   
Then I iterate over the pathComponentCells calling each one's setURL.   
(And in this example that would be 'file://localhost/Users/User A/ 
Documents/' for the first cell, and 'file://localhost/Users/User A/ 
Documents/File.txt' for the second cell.)


Doing this in a forward direction gives the following cell URLs:

0. file://localhost/Users/User A/Documents/File.txt
1. NSPathCell://localhost/Documents/File.txt

Say what?

Interestingly, if I do this in a reverse direction I get the _proper_  
cell URLs:


0. file://localhost/Users/User A/Documents/
1. file://localhost/Users/User A/Documents/File.txt

If this is a bug, I'll be happy to write up a small test app to  
present the problem.


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: Calculating file size

2008-05-01 Thread Aaron Burghardt

Yes, nice catch.

Thanks,

Aaron

On Apr 29, 2008, at 7:56 AM, Jean-Daniel Dupas wrote:


Shouldn't be !isDirectory ?

if (isDirectory) {
FileInfo *fileInfo = (FileInfo *) &info.finderInfo;
fileHFSType = [NSNumber 
numberWithUnsignedLong:fileInfo->fileType];
		fileCreator = [NSNumber numberWithUnsignedLong:fileInfo- 
>fileCreator];

}
else {
fileHFSType = [NSNumber numberWithUnsignedLong:0];
fileCreator = [NSNumber numberWithUnsignedLong:0];
}


___

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]


class_addMethod and type encodings.

2008-05-01 Thread Ross Tulloch

Hi,

I've been experimenting with adding methods to classes at runtime and  
have some questions regarding the use and importance of type encodings.


1) class_addMethod requires a types array. This array describes the  
types of the arguments to the method. The type encodings page simply  
states that this info "assists the runtime". I'm wondering how (and  
when) this type information is used by the runtime? In my testing I've  
found the added methods work fine even if you pass an empty types  
string. How bad an idea is passing an empty types string?


2) I've seen some code which uses type encodings like "@[EMAIL PROTECTED]@4". I  
can't find any doco for this style of encoding. Any hints?


3) The only doco I can find for type encodings in ObjC is the "Runtime  
System > Type Encodings" page. Is there any other doco I should be  
reading?



Thanks,
Ross.
___

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 Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Peter Zegelin
I would like my application to have a 'Visit Website..' menu but I  
can't figure out how to get the users default web browser to open and  
automatically send it to my website.


I would also like to be able to automatically fire up their email  
client and fill in the address and subject (for bug reporting), if  
this is possible.


Any suggestions and/or examples would be greatly appreciated.

Thanks!

Peter Zegein
www.fracturedSoftware.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]


Re: How Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Michael Vannorsdel
Checkout NSWorkspace's openURL:.  NSWorkspace is there to help your  
program when dealing with external programs and functionality.




On May 1, 2008, at 9:02 PM, Peter Zegelin wrote:

I would like my application to have a 'Visit Website..' menu but I  
can't figure out how to get the users default web browser to open  
and automatically send it to my website.


I would also like to be able to automatically fire up their email  
client and fill in the address and subject (for bug reporting), if  
this is possible.


Any suggestions and/or examples would be greatly appreciated.


___

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: Xcode debugger quality

2008-05-01 Thread William Squires
Not sure if this applies, but - for those experiencing all these  
problems - did you turn off that 'zerolink' thing? I've heard that  
throws it for a loop, too. (This may not apply anymore, but I  
remember that used to be a 'feature' back in XCode 1 or so.)


On May 1, 2008, at 10:57 AM, Bill Lowrey wrote:

FWIW, The debugger was the reason my company moved to CodeWarrior  
from Xcode 1.1. We've obviously had to come back, and the positive  
thing is that the debugger is IMO much better than it used to be.  
It usually works now, at least for me, and at least so far. It  
doesn't work as well as it should, but I'm fairly tolerant given  
how bad it was.


I've never used gdb from the command-line. Is it any more reliable  
when used directly? Would it be worth trying?


Even when the Xcode interface to the debugger couldn't display a  
variable, gdb always had the right data. If you are having  
consistent problems with variable display timeouts, make friends  
with the gdb prompt. It's better than NSLog and/or printf. Is it a  
pain? Yeah. Is it better than having nothing? Yep.


The whole GUI debugging experience seems to work much better with  
DWARF than with stabs, so if anyone hasn't moved to DWARF yet, I'd  
recommend it.


Just my .02.

Bill Lowrey
Sr. Software Engineer
istation.com

On Thu, May 1, 2008 at 10:31 AM, James Larcombe  
<[EMAIL PROTECTED]> wrote:

> Roy Lovejoy wrote:
>
>  > IIRC, Metrowerks Codewarrior used gdb for OSX, and
>  > although a smidge slower than its OS 9 versions, still
>  > performed high quality debugging, without any of Xcode's
>  > issues.
>
>  That's not my recollection; the quality of the Codewarrior
>  debugger reduced dramatically when it moved to GDB, in
>  terms of both speed and reliability.
>
>  James
>
>
>  ___
>  Do not post admin requests to the list. They will be ignored.
>  Xcode-users mailing list  ([EMAIL PROTECTED])
>  Help/Unsubscribe/Update your Subscription:
>  http://lists.apple.com/mailman/options/xcode-users/billl% 
40istation.com

>
>  This email sent to [EMAIL PROTECTED]
>

 ___
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list  ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/wsquires% 
40satx.rr.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 Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Peter Zegelin
Thanks  - I have got it to work in both cases except where I add a  
subject to the mailto:



This works:   NSString *applicationURL = @"mailto:[EMAIL PROTECTED] 
 ";


but this doesn't:   NSString *applicationURL = @"mailto:[EMAIL PROTECTED] 
 - Require Registration Help ";


into:  [[NSWorkspace sharedWorkspace] openURL:[NSURL  
URLWithString:applicationURL]];



If I shorten the Subject to just subject=AlphaDraw it works but it  
looks like any spaces are causing the method to fail.

Any suggestions what may be wrong?

thanks again,

Peter


On 02/05/2008, at 1:16 PM, Michael Vannorsdel wrote:

Checkout NSWorkspace's openURL:.  NSWorkspace is there to help your  
program when dealing with external programs and functionality.




On May 1, 2008, at 9:02 PM, Peter Zegelin wrote:

I would like my application to have a 'Visit Website..' menu but I  
can't figure out how to get the users default web browser to open  
and automatically send it to my website.


I would also like to be able to automatically fire up their email  
client and fill in the address and subject (for bug reporting), if  
this is possible.


Any suggestions and/or examples would be greatly appreciated.


___

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/peter%40fracturedsoftware.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 Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Andrew Farmer

On 01 May 08, at 21:05, Peter Zegelin wrote:
Thanks  - I have got it to work in both cases except where I add a  
subject to the mailto:


This works:   NSString *applicationURL = @"mailto:[EMAIL PROTECTED] 
 ";


but this doesn't:   NSString *applicationURL = @"mailto:[EMAIL PROTECTED] 
 - Require Registration Help ";


into:  [[NSWorkspace sharedWorkspace] openURL:[NSURL  
URLWithString:applicationURL]];


If I shorten the Subject to just subject=AlphaDraw it works but it  
looks like any spaces are causing the method to fail.

Any suggestions what may be wrong?


You need to URL-encode the subject.

NSString *applicationURL = @"mailto:[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 Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Jens Alfke


On 1 May '08, at 9:05 PM, Peter Zegelin wrote:

If I shorten the Subject to just subject=AlphaDraw it works but it  
looks like any spaces are causing the method to fail.

Any suggestions what may be wrong?


Spaces aren't legal in URLs, so the NSURL object you're getting is  
nil. You have to URL-encode the subject string, calling - 
stringByAddingPercentEscapesUsingEncoding:.


—Jens

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]

Re: How Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Michael Vannorsdel
Those URLs usually need escapes to work.  Try running the URL through  
CFURLCreateStringByAddingPercentEscapes before sending the NSWorkspace.



On May 1, 2008, at 10:05 PM, Peter Zegelin wrote:

Thanks  - I have got it to work in both cases except where I add a  
subject to the mailto:



This works:   NSString *applicationURL = @"mailto:[EMAIL PROTECTED] 
 ";


but this doesn't:   NSString *applicationURL = @"mailto:[EMAIL PROTECTED] 
 - Require Registration Help ";


into:  [[NSWorkspace sharedWorkspace] openURL:[NSURL  
URLWithString:applicationURL]];



If I shorten the Subject to just subject=AlphaDraw it works but it  
looks like any spaces are causing the method to fail.

Any suggestions what may be wrong?


___

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: class_addMethod and type encodings.

2008-05-01 Thread Jens Alfke


On 1 May '08, at 7:29 PM, Ross Tulloch wrote:

1) class_addMethod requires a types array. This array describes the  
types of the arguments to the method. The type encodings page simply  
states that this info "assists the runtime". I'm wondering how (and  
when) this type information is used by the runtime? In my testing  
I've found the added methods work fine even if you pass an empty  
types string. How bad an idea is passing an empty types string?


The types are used by NSMethodSignature, which in turn gets used by  
NSInvocation and DistributedObjects, and probably other things.


3) The only doco I can find for type encodings in ObjC is the  
"Runtime System > Type Encodings" page. Is there any other doco I  
should be reading?


The docs I know of are down in the GCC documentation, in the "compiler  
extensions for Objective-C" section. It's buried somewhere in the  
reference library in /Developer.


—Jens

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]

Re: How Do You Open Default Web Browser and goto URL?

2008-05-01 Thread Peter Zegelin
Thanks all - that was it. It was an encoding problem and it is now  
working perfectly.


Peter

___

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: Xcode debugger quality

2008-05-01 Thread Scott Ribe
> This may not apply anymore

It doesn't even exist in Xcode 3.

-- 
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice


___

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: Cache Class review (low priority)

2008-05-01 Thread Jens Alfke


On 1 May '08, at 4:49 PM, Western Botanicals wrote:


How is my code and comments?


Much better! But here are a few remaining issues:

In general, your autorelease pools (in all these methods) aren't  
necessary. Typically you only need to add pools as optimizations, if  
you have a loop that iterates many times and creates objects every time.


[NSTimer scheduledTimerWithTimeInterval: defaultSleepTime target:  
self selector: @selector(run:) userInfo: nil repeats: YES];


That timer is autoreleased, so you have to retain it or it'll go away  
after your init method returns. Typically you'd then assign it to an  
ivar; then when you need to stop the timer, you call -invalidate and - 
release on it.



// we need to verify that the object isn't already in the 
dictionary
// if it is we just need to touch it

id dictionaryObject = [theDictionary objectForKey: theID];

if (dictionaryObject == nil){
[theDictionary setObject: itemArray forKey: theID];
} else {
[self touch: theID];
}


I don't think you want to do this. It has the side effect that you  
can't change the value for a key — it'll just ignore the new value and  
bump the timestamp on the old one. If you simply always do the  
setObject:forKey: call, it'll do the right thing.



NSDate *now = [NSDate date];

		NSDate *date = [[theDictionary objectForKey: theID] objectAtIndex:  
1];

date = now;


That last line doesn't update the stored data. It just changes the  
value of the local variable 'date'. What you want is

NSDate *now = [NSDate date];
	[[theDictionary objectForKey: theID] replaceObjectAtIndex: 1  
withObject: now];



if ([date compare: now] == NSOrderedDescending) {
[self removeItem: key];


Isn't that going to remove everything from the dictionary whenever it  
runs? 'date' is the time the object was added or touched, which is in  
the past so by definition it's always going to be less than 'now'. You  
could change that test to

if ([date timeIntervalSinceNow] < -expirationPeriod ) ...
where 'expirationPeriod' is an NSTimeInterval, a number of seconds  
that values can live in the cache.



/** This method sees if a key is in the array */
- (bool) containsKey: (NSString *) theID {

NSArray *array = [theDictionary objectForKey: theID];

if (array == nil){
return false;
} else {
return true;
}

}


Collections don't usually have a separate 'contains' method (at least  
not in Cocoa / CoreFoundation), because it's just as easy to call - 
get: But that's a matter of taste. Also, you could simplify the if/ 
else statement down to

return (array != nil);

Finally, I'd recommend writing some unit tests for this class that  
exercise all of its functionality. They would have told you that  
values can't be changed and expiration never happens, and would also  
verify your future fixes.


—Jens

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]

Re: NSPopUpButton doesn't show list when used inside a menu item

2008-05-01 Thread Jens Alfke


On 1 May '08, at 2:12 PM, Angel Todorov wrote:

I have a regular menu (File menu) for my app. One of the menu items  
(New
...)  is a custom view , which happens to contain a NSPopUpButton  
(i.e.

simple drop down).


Um, that's ... weird. I suggest you use a regular submenu instead.  
Many apps have one of those for the New command, when they can create  
several types of new documents.


Putting a custom control in a menu, that does the same job as an  
existing mechanism, but differently, it just going to make your app  
look inconsistent and confusing.


—Jens

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]

Dragging a window

2008-05-01 Thread Geert B. Clemmensen

Hello,

Looking at an old NEXTSTEP application where you e.g. in a mouseDown  
method could have the window dragged by using the dragFrom: method (as  
if you were clicking on the window title bar). The dragFrom: method  
isn't available in Cocoa. Any recommendation as to how one can drag a  
window (without a normal title bar)?


Kind Regards,
Geert B. Clemmensen
FrontBase, Inc.

___

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: Dragging a window

2008-05-01 Thread Kyle Sluder
On Fri, May 2, 2008 at 1:11 AM, Geert B. Clemmensen <[EMAIL PROTECTED]> wrote:
>  Looking at an old NEXTSTEP application where you e.g. in a mouseDown method
> could have the window dragged by using the dragFrom: method (as if you were
> clicking on the window title bar). The dragFrom: method isn't available in
> Cocoa. Any recommendation as to how one can drag a window (without a normal
> title bar)?

Don't have access to my Mac right now to test, but check out
-[NSWindow isMovableByWindowBackground].

--Kyle Sluder
___

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: Dragging a window

2008-05-01 Thread Henry McGilton (Starbase)


On May 1, 2008, at 10:15 PM, Kyle Sluder wrote:

On Fri, May 2, 2008 at 1:11 AM, Geert B. Clemmensen  
<[EMAIL PROTECTED]> wrote:
 Looking at an old NEXTSTEP application where you e.g. in a  
mouseDown method
could have the window dragged by using the dragFrom: method (as if  
you were
clicking on the window title bar). The dragFrom: method isn't  
available in
Cocoa. Any recommendation as to how one can drag a window (without  
a normal

title bar)?


Don't have access to my Mac right now to test, but check out
-[NSWindow isMovableByWindowBackground].

--Kyle Sluder


Or, if the window has been created using

 styleMask:NSBorderlessWindowMask

you arrange that whatever view(s) intercept mouseDown
and mouseDragged will do the job of moving the window
appropriately.

Cheers,
  Henry


===+
  Henry McGilton, Boulevardier |Trilithon Software
   Objective-C/Java Composer   | Seroia Research
---+
  mailto:[EMAIL PROTECTED]   |   http://www.trilithon.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]


CGevent and cocoa compatibility

2008-05-01 Thread Ben Lachman
Does anyone know how to get the keycode out of a NX_SYSDEFINED  
CGEvent?  If so, is that keycode the same thing you'd get out of say  
(([event data1] & 0x) >> 16)? I'm trying to support the media  
keys on the Apple aluminum keyboards without having iTunes also get  
the events.


Thanks,

->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: [EMAIL PROTECTED]
twitter: @benlachman
mobile: 740.590.0009



___

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]


Image reflection in IKImageBrowserView

2008-05-01 Thread Aby
Hi list,
How to implement Image reflection for all the images in
IKImageBrowserView.

Regards
Tom
___

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]