GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-07 Thread William Zumwalt
Anyone have any experience trying to port a Cocoa XCode app to linux? Are
the GnuStep or OpenStep libs compatible w/ Cocoa's NextStep? I'd really like
to try this if it will work and wondering if anyone else has done the same.
It's not a simple command line app in obj-c, but rather, uses Cocoa and was
developed on Tiger, haven't made the move to Leopard yet.

Any help, advice much 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]


[Moderator] No iPhone SDK discussion here please

2008-03-07 Thread Scott Anguish

Reposting this just to be crystal clear.

iPhone 2.0 SDK is entirely covered by NDA, including the  
documentation.  All of it requires login to access it at the iPhone  
Dev Center.


Items specifically discussed in the announcement are public. But even  
still, they're not appropriate for discussion on this list.


Please stay tuned for more details.

Comments, complaints, etc to [EMAIL PROTECTED]

Thanks for you cooperation.

Scott
Tech Pubs
Apple 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: best time to alter GUIs

2008-03-07 Thread Ken Thomases

On Mar 7, 2008, at 9:38 PM, Daniel Child wrote:


On Mar 3, 2008, at 2:05 PM, Ken Thomases wrote:


On Mar 3, 2008, at 11:12 AM, Daniel Child wrote:


On Mar 1, 2008, at 6:15 AM, Ken Thomases wrote:

Does your init method do anything else other than calling [super  
initWithWindowNibName:]?  In particular, if it calls [self  
window], that forces the loading (and awakening) of the NIB in  
order to reconstitute the window.
My bad. I should have checked that, and assumed it simply passed  
the address. If [self window] loads things, is there any way to  
obtain the window's address without loading it?


That question is nonsensical.  There is no window until it's  
loaded, therefore there is nothing to have the address of.


Sorry, I was confused by the terminology.  To me "load" sounded like  
"unfreeze the nib file and show the window", though I now see that  
NSNib docs indicate that "load" means place into memory without  
unarchiving. (To unarchive, you then instantiate.) I guess I was  
trying to say "load the window into window memory without showing  
the window." Surely there must be a way to do that?


Thanks for the correction.


We can think of three stages of loading a window from a NIB and  
showing it:


1. Loading the NIB bundle's contents into memory
2. Unarchiving the NIB's contents and instantiating the object graph  
that was frozen within it

3. Showing the window

It is an unimportant implementation detail as to whether  
NSWindowController performs 1 and 2 as distinct steps or performs them  
together.  The documentation for NSWindowController combines them both  
under the term "load", as in the isWindowLoaded method.  In any case,  
you can't have a pointer to any of the objects in the NIB until after  
step 2 completes.  And calling -[NSWindowController window] causes  
both steps 1 and 2 to be performed.


You can load the NIB and get the address of the window without showing  
it.  Just uncheck Visible at Launch in the window's properties in  
Interface Builder.  If that's checked then step 2 automatically leads  
to step 3.


However, if I remember your original question, your concern was not  
that the window was being shown before you were ready for it, but that  
windowWillLoad, awakeFromNib, and windowDidLoad were all called during  
the initialization of your
Step3_FieldIDController object.  All of those methods are part and  
parcel of step 2.  Therefore, there is no way to obtain a pointer to  
the window without that sequence of methods being called.  Your  
attempt to obtain the window's pointer during your init was what was  
causing all of those to be invoked.


I would recommend that you reorganize your code so that it doesn't  
need or attempt to obtain the pointer to the window before it's  
necessary, which is generally when it is shown.  If you need to  
configure the window, the window controller should do it in its  
awakeFromNib or windowDidLoad methods.  If you need to reconfigure the  
window after it's loaded, then go ahead and do that whenever it's  
appropriate, but don't force the loading of the window just to  
configure it.  Use isWindowLoaded if you need to test if the window  
has been loaded to decide which way to go.


Apple recommends this technique of lazy loading, lazy allocation, or  
lazy evaluation.  It's not a hard and fast rule, but it's often a good  
idea.


I hope that helps,
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]


CALayer weirdness

2008-03-07 Thread Francois-Jean De Brienne
I have an NSView which has a CALayer (we will call parent). "parent"  
seems to work fine, since whenever I draw in it, the results are  
displayed.


This parent CALayer instanciates a number of child CALayers which are  
actually of a class I created (that derives from CALayer). These child  
CALayers implement the drawInContext method.


Whenever parent is redrawn, I can briefly see the result of the  
children's drawInContext method. However, a fraction of a second  
later, this disappears.


ex. 1: If parent draws nothing, I see the children's drawInContext  
result flash briefly and return to blank.


ex. 2: If parent draws something, I see parent's draw results,  
followed by a brief flash of the children's draw result, finally  
replaced by the parent's draw results.


I'm quite sure nothing else in my code draws over parent, since ex.  
2's end result would be the same as ex. 1 end result. Could it be that  
when parent is not drawing something, it's NSView draws over it? I  
wouldn't think so.


Any ideas?

___

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]


NSTableViews, NSArraycontrollers and table selection question

2008-03-07 Thread Lorenzo Thurman
I have two NSTableviews each bound to their own NSArrayControllers. The
tables site side by side in a window and are populated simultaneously. That
works all well and good. The problem I have is that the first row in each
table is selected, but grayed out and clicking on those rows does not fire a
selection changed notification. I guess this make sense since its already
selected, so there's no real change, but I have two other textfields that
are bound to the selections, so the texfields are not populated until I
click another row. I've played around with the settings in IB 3 (all the
bindings were setup in IB3), but I can't figure out how to make this work. I
tried setting the selection index to -1 after the tables are poulated, but
that did not help. I thought I could also fire my own
tableselectiondidchange notification using the notification center, but that
didn't work either. Does anyone have any pointers?Thanks

-- 
"My break-dancing days are over, but there's always the funky chicken"
--The Full Monty
___

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: Cocoa-dev Digest, Vol 5, Issue 335

2008-03-07 Thread Quincey Morris


On Mar 7, 2008, at 19:59, Daniel Child wrote:

OK, thanks. But then in Cocoa you normally use alloc and init  
together, and that's where the problem is, I think.  
initWithWindowNibName seems to result in the window being shown  
automatically.


I am instantiating the window controller, and am trying to figure  
out at which point I could gain access to its window's memory  
without showing the window.




Initializing the window controller doesn't itself cause the window to  
be shown. Something else is going on. Either the window is set  
"visible at launch" in the nib file, or something is explicitly  
causing the window to be shown.


If you're lucky, setting a breakpoint in the window controller's  
showWindow method will tell you when this is happening.

___

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: Cocoa-dev Digest, Vol 5, Issue 335

2008-03-07 Thread Andrew Merenbach

Hi, Daniel,

I haven't been following this thread, unfortunately, but what comes to  
mind is the checkbox for "Visible at launch" in the window  
controller's inspector panel.  Is that ticked?


Cheers,
Andrew

On Mar 7, 2008, at 7:59 PM, Daniel Child wrote:

OK, thanks. But then in Cocoa you normally use alloc and init  
together, and that's where the problem is, I think.  
initWithWindowNibName seems to result in the window being shown  
automatically.


I am instantiating the window controller, and am trying to figure  
out at which point I could gain access to its window's memory  
without showing the window.


On Mar 3, 2008, at 3:02 PM, [EMAIL PROTECTED] wrote:


"Loading" a window means creating the NSWindow object by unarchiving
it from the nib file. The window object literally does not exist
before loading (and the window controller's private instance variable
is nil). To modify the window object from what's in the nib file, you
need to unarchive (load) it (which does not cause it to display),
change it, then display it with the changes in place.


___

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/andrew.merenbach%40ucla.edu

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: Cocoa-dev Digest, Vol 5, Issue 335

2008-03-07 Thread Daniel Child
OK, thanks. But then in Cocoa you normally use alloc and init  
together, and that's where the problem is, I think.  
initWithWindowNibName seems to result in the window being shown  
automatically.


I am instantiating the window controller, and am trying to figure out  
at which point I could gain access to its window's memory without  
showing the window.


On Mar 3, 2008, at 3:02 PM, [EMAIL PROTECTED] wrote:


"Loading" a window means creating the NSWindow object by unarchiving
it from the nib file. The window object literally does not exist
before loading (and the window controller's private instance variable
is nil). To modify the window object from what's in the nib file, you
need to unarchive (load) it (which does not cause it to display),
change it, then display it with the changes in place.


___

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: NSTextView changes font

2008-03-07 Thread Ben Lachman
This seems to be some weirdness with IB.  Just set the font  
programatically instead and you're fine.  The sample project I made  
has a controller with this awakeFromNib in it:


- (void)awakeFromNib {
[textview setFont:[NSFont systemFontOfSize:36.0]];
[textview setRichText:NO];
[textview setUsesFontPanel:NO];
}

In IB I unchecked allow user to change font.

HTH,
->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Mar 7, 2008, at 9:31 PM, John Stiles wrote:

I tried implementing the delegate method – 
textView:shouldChangeTypingAttributes:toAttributes:, but it was  
never called.

What do you mean by "whenever needed"?
If an NSTextField supported scrolling, that would have been ideal…  
I just want my font to stick. I guess I assumed this would be simple.



Ben Lachman wrote:
I'd use setTypingAttributes: in the text view's delegate whenever  
needed.  In my code at least this often goes along with editing  
the default paragraph style as well via setDefaultParagraphStyle:.


->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Mar 7, 2008, at 12:57 PM, John Stiles wrote:

I have an NSTextView in my app. The user can type whatever they  
want into it.


In Interface Builder, I've set a nice large font. I've disabled  
rich text, font changing, etc., so I was hoping that the font  
would always stay the same.


However, if the user deletes the entire contents of the text  
view, it magically changes back to Helvetica 12.


How can I avoid this behavior?

___

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: best time to alter GUIs

2008-03-07 Thread Daniel Child

On Mar 3, 2008, at 2:05 PM, Ken Thomases wrote:


On Mar 3, 2008, at 11:12 AM, Daniel Child wrote:


On Mar 1, 2008, at 6:15 AM, Ken Thomases wrote:

Does your init method do anything else other than calling [super  
initWithWindowNibName:]?  In particular, if it calls [self  
window], that forces the loading (and awakening) of the NIB in  
order to reconstitute the window.
My bad. I should have checked that, and assumed it simply passed  
the address. If [self window] loads things, is there any way to  
obtain the window's address without loading it?


That question is nonsensical.  There is no window until it's  
loaded, therefore there is nothing to have the address of.


Sorry, I was confused by the terminology.  To me "load" sounded like  
"unfreeze the nib file and show the window", though I now see that  
NSNib docs indicate that "load" means place into memory without  
unarchiving. (To unarchive, you then instantiate.) I guess I was  
trying to say "load the window into window memory without showing the  
window." Surely there must be a way to do that?


Thanks for the correction.
___

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: Trying to intentionally create a memory leak

2008-03-07 Thread Bill Bumgarner

On Mar 7, 2008, at 6:12 PM, Ken Ferry wrote:

Also, it happens that numbers -1 through 12 (I think) are uniqued, so
[[NSNumber alloc] initWithInteger:5] won't leak either.

This isn't something to count on, of course.


In general, if you want to leak something on purpose, leak NSObjects  
or subclasses.   The mutable collection classes are are relatively non- 
surprising to leak, too.


If you want some real fun, set up a couple of timers that call various  
methods at non-integral intervals (so you get beating effects) that do  
different, non-synchronizing, things to your state.  Then add threads.


Then try and figure out how to use the debugging tools to figure out  
what went wrong.


malloc_history is a huge help.

Also, you'll probably want to turn on MallocScribble to wipe out any  
bits of diagnostic help done by the runtime so as to better simulate  
real world debugging in production systems.


b.bum

___

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: NSTextView changes font

2008-03-07 Thread John Stiles
I tried implementing the delegate method 
–textView:shouldChangeTypingAttributes:toAttributes:, but it was never 
called.

What do you mean by "whenever needed"?
If an NSTextField supported scrolling, that would have been ideal… I 
just want my font to stick. I guess I assumed this would be simple.



Ben Lachman wrote:
I'd use setTypingAttributes: in the text view's delegate whenever 
needed.  In my code at least this often goes along with editing the 
default paragraph style as well via setDefaultParagraphStyle:.


->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Mar 7, 2008, at 12:57 PM, John Stiles wrote:

I have an NSTextView in my app. The user can type whatever they want 
into it.


In Interface Builder, I've set a nice large font. I've disabled rich 
text, font changing, etc., so I was hoping that the font would always 
stay the same.


However, if the user deletes the entire contents of the text view, it 
magically changes back to Helvetica 12.


How can I avoid this behavior?

___

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: force NSTextField to accept only Roman, or the other character codes

2008-03-07 Thread Martin Wierschin

Hi Norio,

So when the cursor comes to the text field, I want input method to  
change suitable characters depending on the text field.

Not using validation after user types something in it.


There's no Cocoa API for switching the keyboard/input method.  
However, on Leopard you can use Text Input Source services to do what  
you want:


	http://developer.apple.com/documentation/TextFonts/Reference/ 
TextInputSourcesReference/Reference/reference.html


It's works very nicely. On Tiger and under you're stuck with Keyboard  
Layout services:


	http://developer.apple.com/documentation/Carbon/Reference/ 
KeyboardLayoutServices/DeprecationAppendix/AppendixADeprecatedAPI.html


Which, in my opinion, is buggy and incomplete.

~Martin

___

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: Trying to intentionally create a memory leak

2008-03-07 Thread Ken Ferry
On Fri, Mar 7, 2008 at 2:59 PM, Sherm Pendley <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 7, 2008 at 5:45 PM, Jake <[EMAIL PROTECTED]> wrote:
>
>  > I am trying to create a simple Cocoa app that has an intentional memory
>  > leak so that I can play with the development tools Instruments, MallocDebug
>  > and leaks to learn how to detect memory leaks.  I have a Cocoa console
>  > application that has code that I was sure would leak - [NSNumber alloc] 
> with
>  > no corresponding release.   But when I run those tools I detect no leak.
>
>
>  NSNumber is a class cluster, so its +alloc is probably just returning a
>  singleton placeholder. Have you tried fully initializing the NSNumber
>  instances? Have you tried using NSObject instead?
>

Also, it happens that numbers -1 through 12 (I think) are uniqued, so
[[NSNumber alloc] initWithInteger:5] won't leak either.

This isn't something to count on, of course.

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


force NSTextField to accept only Roman, or the other character codes

2008-03-07 Thread norio

Hi,

My app's window has several NSTextFields. Some of them only accept  
Roman characters, and the others prefer to Japanese.
So when the cursor comes to the text field, I want input method to  
change suitable characters depending on the text field.

Not using validation after user types something in it.
I believe Carbon has APIs for this purpose. Is there any ways to do  
this with Cocoa?


Thank you,
Norio Ota
___

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]


Textview not resizing in Leopard

2008-03-07 Thread Ben Lachman

Ok, last question of the day.

I have a textview (enclosed in the normal scrollview) that resizes  
fine in Tiger but in Leopard is clipped on the bottom.  The text  
container is set to track the textview width and the textview is set  
to be vertically resizable but not horizontally resizable.  Its  
autoresizing mask is set to width and height sizable.  Both the  
scrollview and the clip view appear to have the correct frame/bounds  
while the textview's frame is incorrect.  Anyone run into something  
like this?  I googled a bunch of related terms and came up with  
almost nothing.


TIA,
->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
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]


Core Data MOM configurations and renaming...

2008-03-07 Thread Martin Linklater
Hi - I'm having some problems with MOM configurations. I have been  
playing about with some data models and have duplicated and renamed  
one. When I initialise the MOM using the datamodel name I get results  
that don't make sense. Here's a snippet of my code:


NSURL* dataDumpURL = [[NSURL alloc] initFileURLWithPath:[bundle  
pathForResource:@"OptDataDump" ofType:@"mom"]];	
dataDumpMOM = [[NSManagedObjectModel alloc]  
initWithContentsOfURL:dataDumpURL];

NSArray *temp = [dataDumpMOM configurations];

My data model in XCode has the filename OptDataDump.xcdatamodel. The  
dataDump MOM is initialised with no errors, using the URL created on  
the first line ('OptDataDump'). Yet when I poll the MOM and get it to  
put it's configurations into an array (the last line of the code) I  
get a string value 'DataDump'.


This 'OptDataDump' was copied and renamed from 'DataDump', but I can't  
figure out why the MOM is getting the old configuration name from -  
where else is it stored apart from the filename ?


Thanks for any help you can give.

- Martin
___

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: Trying to intentionally create a memory leak

2008-03-07 Thread Jens Alfke


On 7 Mar '08, at 2:45 PM, Jake wrote:

I have a Cocoa console application that has code that I was sure  
would leak - [NSNumber alloc] with no corresponding release.   But  
when I run those tools I detect no leak.


If you're just calling literally "[NSNumber alloc]", you're probably  
just getting a shared placeholder object that's waiting for the -init  
call to create a new instance of the appropriate class. That's part of  
the weirdness of class-clusters. But in general it never makes sense  
to call +alloc without -init.


Even if you initialize the NSNumber, I know that some common values  
(small integers) are cached for performance reasons, so instead of  
allocating a new one it might just give you the shared one.


Try something like "[[NSMutableArray alloc] init]", or even good ol'  
"malloc(1000)".


—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: Trying to intentionally create a memory leak

2008-03-07 Thread Sherm Pendley
On Fri, Mar 7, 2008 at 5:45 PM, Jake <[EMAIL PROTECTED]> wrote:

> I am trying to create a simple Cocoa app that has an intentional memory
> leak so that I can play with the development tools Instruments, MallocDebug
> and leaks to learn how to detect memory leaks.  I have a Cocoa console
> application that has code that I was sure would leak - [NSNumber alloc] with
> no corresponding release.   But when I run those tools I detect no leak.


NSNumber is a class cluster, so its +alloc is probably just returning a
singleton placeholder. Have you tried fully initializing the NSNumber
instances? Have you tried using NSObject instead?

sherm--
___

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]


Trying to intentionally create a memory leak

2008-03-07 Thread Jake
I am trying to create a simple Cocoa app that has an intentional memory leak so 
that I can play with the development tools Instruments, MallocDebug and leaks 
to learn how to detect memory leaks.  I have a Cocoa console application that 
has code that I was sure would leak - [NSNumber alloc] with no corresponding 
release.   But when I run those tools I detect no leak.

I would appreciate suggestions on code or examples on how to purposely create a 
memory leak and on how to properly use these tools to detect them.  I have read 
the documentation and believe I am following instructions but I must have 
missed something.
___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: How to set a custom glyph generator?

2008-03-07 Thread Keith Blount
Oh - thank you! It seems that the docs on my computer are wrong, as they 
clearly state that -setGlyphGenerator: is "Available in Mac OS X v10.5 and 
later" - but I just checked the online docs and they say it is available in 
10.4 and later. It looks like I need to update the documentation on my machine.

Many thanks for taking the time to answer.
All the best,
Keith

- Original Message 
From: Aki Inoue <[EMAIL PROTECTED]>
To: Keith Blount <[EMAIL PROTECTED]>
Cc: cocoa-dev@lists.apple.com
Sent: Friday, March 7, 2008 8:49:05 PM
Subject: Re: How to set a custom glyph generator?

The interface is publicly available since Mac OS X 10.4 Tiger.

Aki

On 2008/03/07, at 12:44, Keith Blount wrote:

> Hi,
>
> I have a custom glyph generator that does some custom glyph stuff  
> (obviously). Setting this up on Leopard is easier - I just call  
> NSLayoutManager's -setGlyphGenerator: to replace the standard glyph  
> generator with my own. However, no such method exists on Tiger, and  
> my application runs on Tiger too. Whilst I could limit the custom  
> features provided by my glyph generator to Leopard users, I'd really  
> like it to work on Tiger too.
>
> So, my question is - and I'm guessing this is going to depend on a  
> text guru coming across this message :) - how do you set a custom  
> glyph generator in Tiger, before we had -setGlyphGenerator:?
>
> Many thanks in advance,
> Keith
>
>
>
>   
> 
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> ___
>
> 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/aki%40apple.com
>
> This email sent to [EMAIL PROTECTED]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

___

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: -[NSMenu popUpContextMenu:withEvent:forView:] crashing in __isSystemFont on 10.5.2

2008-03-07 Thread Aki Inoue
One of the biggest changes in Leopard is that NSFont instances are now  
under normal memory management rules.

They deallocate/finalize just as other objects.

Up until Tiger, they never got deallocated (and was one of the biggest  
headaches in resource management).


This is an excerpt from AppKit release note.

Aki

NSFont
The AppKit framework no longer retains NSFont instances, and they are  
subject to the standard retain/release scheme. For debugging purpose,  
you can use the NSDisableFontDeallocation key. When the value is YES,  
font instances are not deallocated. Also, by setting NSFontDebugLevel  
to non-0 value, memory space previously occupied by NSFont is more  
aggressively reclaimed to allow finding over-released instances easily.


On 2008/03/07, at 13:57, Ben Lachman wrote:

EXC_BAD_ACCESS.  But I think I found the issue.  I wasn't retaining  
the font returned by menuFontForSize:.  What threw me off was that  
this never caused a problem in Tiger (perhaps it is a static  
instance that is returned there) but did on Leopard.  No idea of the  
reason for the change though.


Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Mar 7, 2008, at 4:49 PM, Kyle Sluder wrote:


On Fri, Mar 7, 2008 at 4:31 PM, Ben Lachman <[EMAIL PROTECTED]> wrote:

In my custom view I call [NSMenu popUpContextMenu:contextMenu
withEvent:theEvent forView:self] during mousDown: in some cases. It
sometimes crashes during this call in [NSFont __isSystemFont].  The
menu I'm giving it has multiple sizes of the default menu font in  
it.

Any ideas why this is happening?  Same code works fine on Tiger.


What's the actual crash?

--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/aki%40apple.com

This email sent to [EMAIL PROTECTED]


___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: -[NSMenu popUpContextMenu:withEvent:forView:] crashing in __isSystemFont on 10.5.2

2008-03-07 Thread Ben Lachman
EXC_BAD_ACCESS.  But I think I found the issue.  I wasn't retaining  
the font returned by menuFontForSize:.  What threw me off was that  
this never caused a problem in Tiger (perhaps it is a static instance  
that is returned there) but did on Leopard.  No idea of the reason  
for the change though.


Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Mar 7, 2008, at 4:49 PM, Kyle Sluder wrote:


On Fri, Mar 7, 2008 at 4:31 PM, Ben Lachman <[EMAIL PROTECTED]> wrote:

In my custom view I call [NSMenu popUpContextMenu:contextMenu
 withEvent:theEvent forView:self] during mousDown: in some cases. It
 sometimes crashes during this call in [NSFont __isSystemFont].  The
 menu I'm giving it has multiple sizes of the default menu font in  
it.

 Any ideas why this is happening?  Same code works fine on Tiger.


What's the actual crash?

--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: -[NSMenu popUpContextMenu:withEvent:forView:] crashing in __isSystemFont on 10.5.2

2008-03-07 Thread Kyle Sluder
On Fri, Mar 7, 2008 at 4:31 PM, Ben Lachman <[EMAIL PROTECTED]> wrote:
> In my custom view I call [NSMenu popUpContextMenu:contextMenu
>  withEvent:theEvent forView:self] during mousDown: in some cases. It
>  sometimes crashes during this call in [NSFont __isSystemFont].  The
>  menu I'm giving it has multiple sizes of the default menu font in it.
>  Any ideas why this is happening?  Same code works fine on Tiger.

What's the actual crash?

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


NSImageViewing & No Bindings available ...

2008-03-07 Thread Michael Pringle

Hi,

I'm trying to add an NSImageView to a window so that I can bind to it,  
similar to how the icons are displayed in the 'Icon Collection' sample  
from Apple. However, whenever I add a custom view, and change it's  
class to NSImageView, I getting a 'dong' sound when I click off and  
there is no bindings except 'Hidden' and 'Tooltip'. If I look at the  
Apple sample, it has Data, Value, Value Path and Value URL ... but it  
seems no matter what I do I cannot get these when I add my own. I have  
even tried adding another NSImageView to the same view in the sample  
with no luck ??


Any ideas as this one is really driving me crazy !?

-Mic 
___


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]


-[NSMenu popUpContextMenu:withEvent:forView:] crashing in __isSystemFont on 10.5.2

2008-03-07 Thread Ben Lachman
In my custom view I call [NSMenu popUpContextMenu:contextMenu  
withEvent:theEvent forView:self] during mousDown: in some cases. It  
sometimes crashes during this call in [NSFont __isSystemFont].  The  
menu I'm giving it has multiple sizes of the default menu font in it.  
Any ideas why this is happening?  Same code works fine on Tiger.


Thanks,
->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
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]


Changing tab in NSTabView with wantsLayer and Garbage collection problem.

2008-03-07 Thread Mathieu Coursolle

Hi Cocoa dev,

I would like to use core animation in an application, so I am  
investigation on how
to use the wantsLayer property of an NSView, but I got confused with  
some behavior so far...


I created a simple window, in which there is a tab view. In the first  
tab, I added a custom view, and in the second tab I added some basic  
controls (table view, button, etc.).


My custom view sets wantsLayer to YES in awakeFromNib, and then just  
fills with green in drawRect, so no complex drawing. A timer is used  
to change the green intensity to know when drawRect is called.


However, if wantsLayer is YES, and Garbage collection is set to  
supported, then changing tab from my green view to the other tab does  
not hide the green view right away. The second tab appears, but my  
custom views stays visible on top of the second tab for 1 second or 2,  
then goes away by itself.


If wantsLayer is NO, or if garbage collection is disable, everything  
is ok.


Am I missing something here?

Here is my custom view code in case some of you might find a problem...

Thanks!

Mathieu

@implementation MyView

@synthesize timer;
@synthesize colorValue;

- (void)timerDidFired:(NSTimer *)timer
{
double oldValue = [self colorValue];
oldValue += 0.01;
if (oldValue > 1)
oldValue = 0;

[self setColorValue:oldValue];

[self setNeedsDisplay:YES];
}

- (void)awakeFromNib
{
[self setWantsLayer:YES];
	NSTimer* aTimer = [NSTimer scheduledTimerWithTimeInterval:0.01  
target:self selector:@selector(timerDidFired:) userInfo:nil  
repeats:YES];

[self setTimer:aTimer];
}

- (void)drawRect:(NSRect)rect
{
	[[NSColor colorWithCalibratedRed:0.0 green:[self colorValue] blue:0.0  
alpha:1.0] set];

[NSBezierPath fillRect:[self bounds]];
}

@end

___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: How to set a custom glyph generator?

2008-03-07 Thread Aki Inoue

The interface is publicly available since Mac OS X 10.4 Tiger.

Aki

On 2008/03/07, at 12:44, Keith Blount wrote:


Hi,

I have a custom glyph generator that does some custom glyph stuff  
(obviously). Setting this up on Leopard is easier - I just call  
NSLayoutManager's -setGlyphGenerator: to replace the standard glyph  
generator with my own. However, no such method exists on Tiger, and  
my application runs on Tiger too. Whilst I could limit the custom  
features provided by my glyph generator to Leopard users, I'd really  
like it to work on Tiger too.


So, my question is - and I'm guessing this is going to depend on a  
text guru coming across this message :) - how do you set a custom  
glyph generator in Tiger, before we had -setGlyphGenerator:?


Many thanks in advance,
Keith



  


Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

___

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/aki%40apple.com

This email sent to [EMAIL PROTECTED]


___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


ANN: Updated GeekGameBoard framework

2008-03-07 Thread Jens Alfke
I've released an updated version of GeekGameBoard, a small framework  
for building the user interfaces of board and card games using Core  
Animation:


http://mooseyard.com/Jens/2008/03/geekgameboard-getting-closer-to-iphone-ready/

The original version was released by Apple last December as sample  
code. I've fixed a few bugs, and more importantly, made it no longer  
require garbage collection, which brings it one step closer to  
[REDACTED] compatibility. With the release of the [REDACTED] SDK  
yesterday, I imagine a number of people are looking at developing  
games for the [REDACTED], and GeekGameBoard should work quite well  
there. (There's just one NSView class, which would need to be  
rewritten to subclass [REDACTED] and accept [REDACTED] events.)


GeekGameBoard is now an open source project, with a BSD license and a  
Mercurial source-code repository. Your contributions are welcome.


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

How to set a custom glyph generator?

2008-03-07 Thread Keith Blount
Hi,

I have a custom glyph generator that does some custom glyph stuff (obviously). 
Setting this up on Leopard is easier - I just call NSLayoutManager's 
-setGlyphGenerator: to replace the standard glyph generator with my own. 
However, no such method exists on Tiger, and my application runs on Tiger too. 
Whilst I could limit the custom features provided by my glyph generator to 
Leopard users, I'd really like it to work on Tiger too.

So, my question is - and I'm guessing this is going to depend on a text guru 
coming across this message :) - how do you set a custom glyph generator in 
Tiger, before we had -setGlyphGenerator:?

Many thanks in advance,
Keith



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

___

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: NSCollectionView and default selections ...

2008-03-07 Thread Michael Pringle

Hi Jens,

Thanks for getting back to me.

I already had that checked as it was something I'd already thought of.

Do you have any more ideas ? Perhaps I could email you the code ??

-Mic

On 7 Mar 2008, at 20:00, Jens Alfke wrote:



On 7 Mar '08, at 10:02 AM, Michael Pringle wrote:

in Apple's example the first item in the collection is always  
selected, yet on mine I have to click into the collection then onto  
the first item to select it.


Make sure the "Avoids empty selection" checkbox is on, in the  
settings of the array controller that drives the view.


—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: GetMonitorFromWindow

2008-03-07 Thread Mike
No, you should not implement it. Macintosh HIG are different than for 
Windows. Windows does a lot of bad, brain-dead stuff. Just because it's 
done on Windows doesn't mean that is the right way to do it on the Mac. 
As a *professional developer* it is your job to tell your client when 
he/she is wrong.


Just because some people drink too much and crash their cars into 
telephone poles doesn't mean I should do the same.


Mike

Apparao Mulpuri wrote:

Actually this is one of our client requirement, he simply follows the
windows product(where this functionity is available). So i should
implement it.

If APIs available, Could you please provide those

Thanks,
- Apparao

On 3/7/08, Nick Zitzmann <[EMAIL PROTECTED]> wrote:

On Mar 6, 2008, at 10:48 PM, Apparao Mulpuri wrote:


So you mean --- there is no APIs avialable.


There is, but you really shouldn't be doing what you're trying to do
unless you have an extremely good reason. It's perfectly OK for a user
to have a window straddle two screens.

Nick Zitzmann




___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/junklists%40michael-amorose.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: NSCollectionView and default selections ...

2008-03-07 Thread Jens Alfke


On 7 Mar '08, at 10:02 AM, Michael Pringle wrote:

in Apple's example the first item in the collection is always  
selected, yet on mine I have to click into the collection then onto  
the first item to select it.


Make sure the "Avoids empty selection" checkbox is on, in the settings  
of the array controller that drives the view.


—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: Binding Error (accessing value for key) - but works with debugging on (SOLVED)

2008-03-07 Thread Jason Kravitz
I just noticed that I had a rogue NSTextView hidden under the visible one
and I was likely binding both of them to he same field which probably
explains why it would crash with an error sometimes and other times run just
fine. I cleaned up my window and it appears to be working smoothly now.

thanks for the pointer to the dynamic vs. synthesize info

On Fri, Mar 7, 2008 at 6:13 PM, Jason Kravitz <[EMAIL PROTECTED]> wrote:

> Thanks mmalc
>
> so after reading this, I see that dynamic is not necessary to explicitly
> specify as it is the default... I also used the
> "*Copy Obj-C 2.0 Method Declarations to Clipboard*"
>
> which spit out my origText as retain (and not copy) as I originally had it
> so I changed it to retain.
>
> Also by reading this however, it explains that Core Data creates a proper
> getter method for me so I am still unclear why I got get an error saying
> that origText is not KVC compliant as it should be calling the setter
> generated by CD.
>
> The other unexplained thing is why now it is all the sudden working - did
> changing copy to retain prevent some kind of border condition that was
> causing the KVC error or do I still have something weird in my setup that
> may cause a problem down the line?
>
>
> On Fri, Mar 7, 2008 at 5:43 PM, mmalc crawford <[EMAIL PROTECTED]>
> wrote:
>
> >
> > On Mar 7, 2008, at 8:19 AM, Jason Kravitz wrote:
> >
> > > I am a bit confused about using dynamic properties and whether I
> > > should be
> > > using synthesize to create the setter/getters on these fields. Is it
> > > appropriate (or more importantly, required) to add a line like this
> > > to my
> > > MyEntity NSManagedObject?
> > > @synthesize origText,title;
> >
> > <
> > http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW9
> >  >
> > see "Implementation".
> >
> > mmalc
> >
> >
>
___

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: NSTextView changes font

2008-03-07 Thread Ben Lachman
I'd use setTypingAttributes: in the text view's delegate whenever  
needed.  In my code at least this often goes along with editing the  
default paragraph style as well via setDefaultParagraphStyle:.


->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Mar 7, 2008, at 12:57 PM, John Stiles wrote:

I have an NSTextView in my app. The user can type whatever they  
want into it.


In Interface Builder, I've set a nice large font. I've disabled  
rich text, font changing, etc., so I was hoping that the font would  
always stay the same.


However, if the user deletes the entire contents of the text view,  
it magically changes back to Helvetica 12.


How can I avoid this behavior?

___

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]


problem generating PDF using quartz

2008-03-07 Thread Victor Bovio

Hi,

I'm trying to save a test PDF from scratch using the following code:


NSString *path = @"~/Desktop/test.pdf";
NSString *fullPath = [path stringByExpandingTildeInPath];

CFStringRef str =  
CFStringCreateWithCString(kCFAllocatorDefault, [fullPath cString],  
kCFStringEncodingMacRoman);
CFURLRef url = CFURLCreateWithString(kCFAllocatorDefault,  
str, NULL);


CGDataConsumerRef consumer = CGDataConsumerCreateWithURL(url);
CGRect mediaBox = CGRectMake(0, 0, 100, 100);

CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
float rgba[] = { 1.0, 0.5, 0.0, 1.0 };
CGColorRef color = CGColorCreate(colorSpace, rgba);

// CGContextRef pdfContext = CGPDFContextCreateWithURL(url,  
&mediaBox, NULL);
CGContextRef pdfContext = CGPDFContextCreate(consumer,  
&mediaBox, NULL);


CGContextBeginPage(pdfContext, &mediaBox);
CGContextSaveGState(pdfContext);
CGContextClipToRect(pdfContext, mediaBox);
CGContextSetFillColorWithColor(pdfContext, color);
CGContextFillRect(pdfContext, mediaBox);
CGContextRestoreGState(pdfContext);
CGContextEndPage(pdfContext);

CGContextRelease(pdfContext);

CGDataConsumerRelease(consumer);
CGColorRelease(color);
CGColorSpaceRelease(colorSpace);


but I get this error when trying it:

": CGDataConsumer(url_close): write failed: -15."


any ideas ???

Thanks.


___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: MEETING: Chicago CocoaHeads/CAWUG - iPhone SDK (duh! what else this month)

2008-03-07 Thread Bob Frank
Ooops.  Seems like the old map URL suffered a case of bit rot and is  
a few blocks off. Here is a correct Map:


http://tinyurl.com/38by7p

http://maps.google.com/maps?f=q&hl=en&geocode=&q=679+North+Michigan 
+Ave+Chicago,+IL 
+60611&sll=37.0625,-95.677068&sspn=53.477264,81.035156&ie=UTF8&z=16



On Mar 7, 2008, at 11:51 AM, Bob Frank wrote:

The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group  
(CAWUG) is holding our next meeting Tuesday, March 11th, at 7:00 PM  
at the Apple Store on Michigan Ave.



Agenda:
- Introductions & Announcements
- Jon on iPhone development
- adjournment to O'Toole's

When:   
Tuesday, March 11th, 7:00 PM

Where:
Apple Store Michigan Avenue
679 North Michigan Ave. (at the corner of Huron & Michigan Ave.)
Chicago, IL 60611
		http://maps.yahoo.com/maps_result? 
ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611

http://tinyurl.com/26z5nb
(in case long URL gets cut)

- Jon will be presenting on iPhone Development

	With the official release of the iPhone development tools there is  
quite a good deal to talk about.  So bring your iPhones and  
development questions.  Also, if Apple's servers have caught up, be  
sure to sign up and download the latest tools and the iPhone SDK  
from http://developer.apple.com/


- O'Tooles

	We will continue the discussion at our local watering hold Timothy  
O'Toole's at 622 Fairbanks (2 blocks east of the store).



We also wish to thank the folks who run the theater space at the  
Apple store for letting us have our meetings there, and Jonathan  
'Wolf' Rentzsch for hosting the new and revived CAWUG web site.   
Thanks all.


Also, if you are working on a project and would like to talk about  
it  briefly / promote it, I think it would be fun for people to  
hear about  other people's projects.  Please email me off line and  
you can talk at  a future meeting or would like a book to review we  
would welcome that too.



Future meetings dates and tentative topics:  4/8/08, 5/13/08

April - Chuck Remes on MacRuby
May - Bob on WO development with Eclipse, part II


CAWUG Resources

Mail list: http://groups.google.com/group/cawug
Google Site: http://groups.google.com/group/cawug
Web Site: http://www.cawug.org/
RSS feed: http://www.cawug.org/rss.xml
	iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG  
(view on the web)
	iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads- 
CAWUG.ics (subscribe to in iCal)


Cocoa Heads web site:
http://cocoaheads.org/us/ChicagoIllinois/index.html


Hope to see you at the meeting.

-Bob




---
Bob Frank
[EMAIL PROTECTED]
(312) 961 - 0509 [cell]
(312) 902 - 7393 [office]
Senior Consulting Engineer
Apple Education Services



___

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]


NSCollectionView and default selections ...

2008-03-07 Thread Michael Pringle

Hi,

I'm having a small problem with a NSCollectionView.

I used Apple's example (Icon Collection) to setup my collection view,  
and mimicked it in almost all ways. I am happy with everything except  
that in Apple's example the first item in the collection is always  
selected, yet on mine I have to click into the collection then onto  
the first item to select it. I have searched around in the code behind  
Apple's example for the last couple of hours, and have spent a while  
searching on Google but I can't for the life of me find out how to  
have the collection view select the first item in the view by default,  
just like in Apple's example.


All help on this will be greatly appreciated.

Thanks

-Mic
___

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]


NSTextView changes font

2008-03-07 Thread John Stiles
I have an NSTextView in my app. The user can type whatever they want 
into it.


In Interface Builder, I've set a nice large font. I've disabled rich 
text, font changing, etc., so I was hoping that the font would always 
stay the same.


However, if the user deletes the entire contents of the text view, it 
magically changes back to Helvetica 12.


How can I avoid this behavior?

___

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]


Job Offer: Cocoa iPhone Developer

2008-03-07 Thread Kopec, David
If interested, please contact [EMAIL PROTECTED]

The Associated Press is the backbone of the world's information system
serving thousands of daily newspaper, radio, television and online
customers with coverage in all media and news in all formats. It is the
largest and oldest news organization in the world, serving as a source
of news, photos, graphics, audio and video.

AP's mission is to be the essential global news network, providing
distinctive news services of the highest quality, reliability and
objectivity with reports that are accurate, balanced and informed. AP
operates as a not-for-profit cooperative with more than 4,000 employees
working in more than 240 worldwide bureaus.

Position Description:
The Associated Press is looking for a motivated Macintosh developer to
aid in the development of its own native iPhone applications.  These are
consumer facing applications, where attention to detail and UI
experience are paramount.  The position will run at least through June
in our New York office, although off-site development can be arranged as
well.

Responsibilities
* Be the main developer responsible for programming a native Cocoa
iPhone application
* Work to a detailed design specification
* Cooperate with designers and back-end technology partners

Required Knowledge/Experience:
* BS or MS in Computer Science or equivalent experience 
* Macintosh product development experience (2-5 years) 
* Extensive experience programming in Cocoa/Objective C (2+ years) 
* Familiarity with the iPhone's user interface and technical
features/limitations 
* Ability to keep to strict deadlines a must

Desirable Knowledge/Experience:
* Experience with iPhone development a major plus 
* HTML/CSS/Javascript experience

If interested, please contact [EMAIL PROTECTED]


The information contained in this communication is intended for the use
of the designated recipients named above. If the reader of this 
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please 
notify The Associated Press immediately by telephone at +1-212-621-1898 
and delete this email. Thank you.
[IP_US_DISC]
msk dccc60c6d2c3a6438f0cf467d9a4938

___

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]


MEETING: Chicago CocoaHeads/CAWUG - iPhone SDK (duh! what else this month)

2008-03-07 Thread Bob Frank
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group  
(CAWUG) is holding our next meeting Tuesday, March 11th, at 7:00 PM  
at the Apple Store on Michigan Ave.



Agenda:
- Introductions & Announcements
- Jon on iPhone development
- adjournment to O'Toole's

When:   
Tuesday, March 11th, 7:00 PM

Where:
Apple Store Michigan Avenue
679 North Michigan Ave. (at the corner of Huron & Michigan Ave.)
Chicago, IL 60611
		http://maps.yahoo.com/maps_result? 
ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611

http://tinyurl.com/26z5nb
(in case long URL gets cut)

- Jon will be presenting on iPhone Development

	With the official release of the iPhone development tools there is  
quite a good deal to talk about.  So bring your iPhones and  
development questions.  Also, if Apple's servers have caught up, be  
sure to sign up and download the latest tools and the iPhone SDK from  
http://developer.apple.com/


- O'Tooles

	We will continue the discussion at our local watering hold Timothy  
O'Toole's at 622 Fairbanks (2 blocks east of the store).



We also wish to thank the folks who run the theater space at the  
Apple store for letting us have our meetings there, and Jonathan  
'Wolf' Rentzsch for hosting the new and revived CAWUG web site.   
Thanks all.


Also, if you are working on a project and would like to talk about  
it  briefly / promote it, I think it would be fun for people to hear  
about  other people's projects.  Please email me off line and you can  
talk at  a future meeting or would like a book to review we would  
welcome that too.



Future meetings dates and tentative topics:  4/8/08, 5/13/08

April - Chuck Remes on MacRuby
May - Bob on WO development with Eclipse, part II


CAWUG Resources

Mail list: http://groups.google.com/group/cawug
Google Site: http://groups.google.com/group/cawug
Web Site: http://www.cawug.org/
RSS feed: http://www.cawug.org/rss.xml
	iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG (view  
on the web)
	iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads-CAWUG.ics  
(subscribe to in iCal)


Cocoa Heads web site:
http://cocoaheads.org/us/ChicagoIllinois/index.html


Hope to see you at the meeting.

-Bob


___

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: GetMonitorFromWindow

2008-03-07 Thread John Stiles
Well all right then, the OP should check out the NSWindow delegate 
methods, and NSScreen. :)



Randall Meadows wrote:

On Mar 7, 2008, at 9:38 AM, John Stiles wrote:

I'm going to jump on the bandwagon and say that your client is wrong. 
Mac apps do not and should not do this.


Sorry, I've got to jump in here as well, as much as I've tried to keep 
my mouth shut.


Apparao Mulpuri posted a question requesting help.  He posted only the 
relevant details of his problem, not the entire backstory of the 
problem or the requirements (or lack thereof) leading to the problem.


Immediately, people posted--people who knew the solution to the 
problem--NOT the solution, but rather rants second-guessing the OP.  
It took additional posts in order to coax out the correct solution, 
one that fit his (unstated) requirements.  Are we now going to have to 
start detailing project and client requirements when we ask for help, 
in order to actually get that help, and drag the signal:noise ratio of 
this list down to abysmal depths?


And (not to pick on John or anyone in particular, but just making a 
general statement), how 'bout in the future, if you know the solution, 
actually post it, and then (gently!) suggest that perhaps this isn't 
the best way to handle the situation and that perhaps a rethinking of 
the design might be in order (or even suggest an alternate solution).  
That way, you've been helpful, and you've pointed out--to perhaps a 
programmer new to the high-standards Macintosh world--that that's not 
the standard way we do things.


And then, let the OP decide whether to make us happy, or keep his 
employer/client happy.  Personally, I know who I'd choose to keep 
happy (no offense to you fine folks here, but you don't put food on my 
family's table and pay to keep my house warm).


Yes, there standards that, when deviated from, can potentially ruin a 
product's chances of success.
And yes, there are very legitimate reasons for deviating from Mac UI 
and UE standards.  I'm wagering that consistency of cross-platform 
in-house applications is probably the driving force in this case; less 
confusion when employees move from one platform to another, and only 1 
manual and help desk script to maintain.


And I say all this from the perspective of one who's had to do 
something very similar to the original question: making sure that a 
window remained solely on one screen (back in the OS 9 days).  My 
client had monitors that weren't the same resolution, and a window 
crossing the boundaries looked stupid.  This was a *huge* client for 
my company at the time, and to tell them they were wrong and we 
weren't going to meet their requirements would, shall we say, not have 
been a good move for either myself nor my company, to put it mildly.


Sorry this turned into such a harsh sounding rant; that certainly 
wasn't my intention, but I've been on the receiving end of what I 
talked about, as well as being guilty of being on the other end as 
well.  I just feel it's easier (for all involved) to answer the 
question asked, if there is an answer, rather than start out in a 
confrontational manner.


randy <- descending from the soap box
___

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: GetMonitorFromWindow

2008-03-07 Thread John Stiles
DVD Player is a special case—Apple is legally bound to prevent other 
apps from viewing the decrypted contents of the DVD. Recall that 
theoretically, DVDs are an encrypted/copy-protected medium. They jump 
through various hoops to make sure that other apps can't see the 
decrypted/decoded pixels, and forcing the window onto a single screen is 
likely to be a part of that process. (They probably coordinate with the 
video driver to keep the pixels private.)


I am pretty sure that if another process tries to read those pixels, 
they just get a solid color.



Daniel Kennett wrote:
Try and make DVD Player span multiple screens - it simply won't. Since 
DVD Player is hardware accelerated, I was going to suggest that 
hardware accelerating across multiple screens is hard (especially when 
said screens are connected to different cards), but World of Warcraft 
manages just fine, so who knows?


(I've only just realised I'm quoting a Blizzard guy!)

-- Daniel
On 7 Mar 2008, at 16:38, John Stiles wrote:

I'm going to jump on the bandwagon and say that your client is wrong. 
Mac apps do not and should not do 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/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) Localized Apple Help (HTML) doesn't load

2008-03-07 Thread John Fox

Hi Folks:

I discovered the problem was that the  tags in the index.html  
didn't match the title in the InfoPlist.strings.


e.g.:

CFBundleHelpBookName = "MemoryMiner ヘルプ";


I hope this is helpful to some one at some point.

Take care,

John___

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: Binding Error (accessing value for key) - but works with debugging on

2008-03-07 Thread Jason Kravitz
Thanks mmalc

so after reading this, I see that dynamic is not necessary to explicitly
specify as it is the default... I also used the
"*Copy Obj-C 2.0 Method Declarations to Clipboard*"

which spit out my origText as retain (and not copy) as I originally had it
so I changed it to retain.

Also by reading this however, it explains that Core Data creates a proper
getter method for me so I am still unclear why I got get an error saying
that origText is not KVC compliant as it should be calling the setter
generated by CD.

The other unexplained thing is why now it is all the sudden working - did
changing copy to retain prevent some kind of border condition that was
causing the KVC error or do I still have something weird in my setup that
may cause a problem down the line?

On Fri, Mar 7, 2008 at 5:43 PM, mmalc crawford <[EMAIL PROTECTED]> wrote:

>
> On Mar 7, 2008, at 8:19 AM, Jason Kravitz wrote:
>
> > I am a bit confused about using dynamic properties and whether I
> > should be
> > using synthesize to create the setter/getters on these fields. Is it
> > appropriate (or more importantly, required) to add a line like this
> > to my
> > MyEntity NSManagedObject?
> > @synthesize origText,title;
>
> <
> http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW9
>  >
> see "Implementation".
>
> mmalc
>
>
___

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: GetMonitorFromWindow

2008-03-07 Thread Gary L. Wade
Also, there are certain other presentation-based applications where this kind 
of functionality is desired.  For example, when you want to go fullscreen with 
any kind of media, be it from iPhoto, PowerPoint, Keynote, etc., you may indeed 
wish the presentation window to situate itself fully on a particular screen and 
leave another screen available for utility-based windows that can be moved 
around.

For the most part, though, it's not a good idea just to snap a window onto 
another screen.

Now, as I think about it, maybe using one of those new gestures (I really 
haven't played with them much on the MacBook Air) would be the best way to 
"throw" a window to another screen where it would land in a centered or 
well-placed manner.  And, for the really non-busy developer, someone should 
interpret a special gesture that would do a bank shot into the trash can.

>Try and make DVD Player span multiple screens - it simply won't. Since  
>DVD Player is hardware accelerated, I was going to suggest that  
>hardware accelerating across multiple screens is hard (especially when  
>said screens are connected to different cards), but World of Warcraft  
>manages just fine, so who knows?
>
>(I've only just realised I'm quoting a Blizzard guy!)
>
>-- Daniel 
>
>On 7 Mar 2008, at 16:38, John Stiles wrote:
>
>> I'm going to jump on the bandwagon and say that your client is  
>> wrong. Mac apps do not and should not do 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/garywade%40desisoftsystems.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: Localized Apple Help (HTML) doesn't load

2008-03-07 Thread Ryan Poling
I don't think you should be changing the help book name for each  
localization - keep it the same.


-Ryan




On Mar 6, 2008, at 9:03 PM, John Fox wrote:


Hi Folks:

I'm having a problem where localized versions of my local HTML help  
don't load, and I don't know how to debug this. For example, if I  
change the system preferences to Japanese, and click on the Help  
Menu item, the Apple Help Viewer app launches, its main window  
appears, but no help page shows. If I drag the index.html file from  
the Japanese.lproj folder in my app's Resources folder onto the Help  
Viewer icon in the doc, the help page loads and displays properly.  
So, it doesn't seem like there's anything wrong with the HTML itself.


I've double checked that the name of the folder matches the plist  
entries, and is readable.


Here's the relevant entry in my Info.plist:

CFBundleHelpBookFolder
MemoryMiner Help
CFBundleHelpBookName
MemoryMiner Help

Here's the relevant entry in the InfoPlist.strings file for Japanese:

CFBundleHelpBookName = "MemoryMiner ヘルプ";

Am I missing something?

Any help would be greatly appreciated.

Best regards,

John___



___

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: GetMonitorFromWindow

2008-03-07 Thread Randall Meadows

On Mar 7, 2008, at 9:38 AM, John Stiles wrote:

I'm going to jump on the bandwagon and say that your client is  
wrong. Mac apps do not and should not do this.


Sorry, I've got to jump in here as well, as much as I've tried to keep  
my mouth shut.


Apparao Mulpuri posted a question requesting help.  He posted only the  
relevant details of his problem, not the entire backstory of the  
problem or the requirements (or lack thereof) leading to the problem.


Immediately, people posted--people who knew the solution to the  
problem--NOT the solution, but rather rants second-guessing the OP.   
It took additional posts in order to coax out the correct solution,  
one that fit his (unstated) requirements.  Are we now going to have to  
start detailing project and client requirements when we ask for help,  
in order to actually get that help, and drag the signal:noise ratio of  
this list down to abysmal depths?


And (not to pick on John or anyone in particular, but just making a  
general statement), how 'bout in the future, if you know the solution,  
actually post it, and then (gently!) suggest that perhaps this isn't  
the best way to handle the situation and that perhaps a rethinking of  
the design might be in order (or even suggest an alternate solution).   
That way, you've been helpful, and you've pointed out--to perhaps a  
programmer new to the high-standards Macintosh world--that that's not  
the standard way we do things.


And then, let the OP decide whether to make us happy, or keep his  
employer/client happy.  Personally, I know who I'd choose to keep  
happy (no offense to you fine folks here, but you don't put food on my  
family's table and pay to keep my house warm).


Yes, there standards that, when deviated from, can potentially ruin a  
product's chances of success.
And yes, there are very legitimate reasons for deviating from Mac UI  
and UE standards.  I'm wagering that consistency of cross-platform in- 
house applications is probably the driving force in this case; less  
confusion when employees move from one platform to another, and only 1  
manual and help desk script to maintain.


And I say all this from the perspective of one who's had to do  
something very similar to the original question: making sure that a  
window remained solely on one screen (back in the OS 9 days).  My  
client had monitors that weren't the same resolution, and a window  
crossing the boundaries looked stupid.  This was a *huge* client for  
my company at the time, and to tell them they were wrong and we  
weren't going to meet their requirements would, shall we say, not have  
been a good move for either myself nor my company, to put it mildly.


Sorry this turned into such a harsh sounding rant; that certainly  
wasn't my intention, but I've been on the receiving end of what I  
talked about, as well as being guilty of being on the other end as  
well.  I just feel it's easier (for all involved) to answer the  
question asked, if there is an answer, rather than start out in a  
confrontational manner.


randy <- descending from the soap box
___

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: GetMonitorFromWindow

2008-03-07 Thread Daniel Kennett
Try and make DVD Player span multiple screens - it simply won't. Since  
DVD Player is hardware accelerated, I was going to suggest that  
hardware accelerating across multiple screens is hard (especially when  
said screens are connected to different cards), but World of Warcraft  
manages just fine, so who knows?


(I've only just realised I'm quoting a Blizzard guy!)

-- Daniel 


On 7 Mar 2008, at 16:38, John Stiles wrote:

I'm going to jump on the bandwagon and say that your client is  
wrong. Mac apps do not and should not do this.


___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: Binding Error (accessing value for key) - but works with debugging on

2008-03-07 Thread mmalc crawford


On Mar 7, 2008, at 8:19 AM, Jason Kravitz wrote:

I am a bit confused about using dynamic properties and whether I  
should be

using synthesize to create the setter/getters on these fields. Is it
appropriate (or more importantly, required) to add a line like this  
to my

MyEntity NSManagedObject?
@synthesize origText,title;




see "Implementation".

mmalc

___

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: NSPreferencePane with my own private framework?

2008-03-07 Thread Ryan
Thanks for the reply - still not having any luck - I'm going to move  
this question over to the Xcode-users list and see if anyone over  
there has any further ideas.


-Ryan

On Mar 5, 2008, at 8:18 PM, Adam Leonard wrote:

In your preference pane project, make sure @loader_path/../ 
Frameworks is in the target's Framework Search Paths.


If that doesn't work, you might also try @bundle_path (set in both  
the preference pane and framework)


Adam Leonard

On Mar 5, 2008, at 3:44 PM, Ryan wrote:

Thanks for the reply.  I tried changing the installation directory  
on my framework to use @loader_path and re-built it, but I'm still  
getting the same error message when trying to open the preference  
pane.


I imagine I have to change something in the build settings for the  
preference pane project itself (rather than just in the framework  
project), but I'm not sure what to change.  Any tips?  Perhaps I  
should forward this over to the Xcode users list.


Thanks.

-Ryan

On Mar 5, 2008, at 2:14 PM, Nick Zitzmann wrote:
That won't work because @executable_path points to the path of  
System Preferences, not your preference pane. Try using  
@loader_path instead, or make a static version of your framework  
if possible.


Nick Zitzmann


___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: GetMonitorFromWindow

2008-03-07 Thread John Stiles
I'm going to jump on the bandwagon and say that your client is wrong. 
Mac apps do not and should not do this.



Roy Lovejoy wrote:


On Mar 6, 2008, at 9:48 PM, Apparao Mulpuri wrote:


So you mean --- there is no APIs avialable.


no, there are of course APIs available.

I was just trying to help you

a) not alienate your customers
b) avoid work that does not need to be coded.


___

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: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-07 Thread Florent Pillet

> You could issue a fetch request at startup, store its @max in some
> ivar in a MOC subclass, and use that instead of the local static
> variable.
>
> Still a pain, but might do you what you want.

I happen to have needed autoincrement properties too, and stumbled upon 
this post by David Emme:


http://lists.apple.com/archives/Cocoa-dev/2006/Jul/msg01801.html

I implemented something simular, I like the solution of storing the 
"next" value in the metadata. Works fine for me since the app I'm 
working on is the only one fiddling with its data.


--
Florent Pillethttp://www.florentpillet.com
Software consultant - Mobile devices, desktop and server platforms
Mac OS X, Windows+Mobile, Palm OSSkype callto://florent.pillet
___

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]


Binding Error (accessing value for key) - but works with debugging on

2008-03-07 Thread Jason Kravitz
The following is occurring on Leopard - Garbage Collection set to
required...

I have an Entity with a NSManagedObject class declaration

// header
@interface MyEntity : NSManagedObject {
}
@property (readwrite, copy) NSString *origText,*title;
@property (readwrite, copy) NSDate *date;
@end

// implementation
@implementation MyEntity
@dynamic origText,title;
@dynamic date;
@end

In Interface Builder, I created an Array Controller that is Mode: Entity ,
Entity name: MyEntity
I created an NSTableView with columns for title and date and an NSTextView
for origText. I embed these two objects inside an NSSplitView. I drag the
content outlet for the array controller to the NSSplitView and set the
bindings as follows...
Table Column 1 - bind to: MyEntity, controller key: arrangedObjects, model
key path: title
Table Column 2 - bind to: MyEntity, controller key: arrangedObjects, model
key path: date
Text View - bind to: MyEntity, controller key: selection, model key path:
origText

I also have an add and remove button that seem to be working as expected
(with actions set to array controllers add and remove respectively)

The first time the app loads, it crashes with an error about messed up
bindings with origText. If I turn on the bindings debug flag (
-NSBindingDebugLogLevel
1), the app will run without crashing and logs this error to console (see
below) and then if I click on any of the objects in the table, it loads the
origText without errors from then on. I suspect that possibly any of these
is the reason...
1) I am really doing things the wrong way since I'm quite new to this stuff
2) it crashes on the first one because there is no selection so nothing for
origText to bind to but then clicking in the table after that works as
expected since the selection is clear so the question is, how to set the
first selected item in table view ?
3) I don't have a proper getter method for origText (yet it seems to get it
OK except on first run so I'm not sure here) and title does not have a
getter and it works fine.

here is the error I get
2008-03-07 16:52:42.788 myapp[4829:10b] Cocoa Bindings: Error accessing
value for key path selection.origText of object [entity: MyEntity, number of selected objects: 1] (from bound
object 
Frame = {{0.00, 122.00}, {478.00, 284.00}}, Bounds = {{0.00, 0.00}, {
478.00, 284.00}}
Horizontally resizable: NO, Vertically resizable: YES
MinSize = {478.00, 284.00}, MaxSize = {487.00, 1000.00}
 with object ID 666 in Nib named MainMenu.nib): [
valueForUndefinedKey:]: this class is not key value coding-compliant for the
key origText.


on a side note for the patient person still reading this...

I am a bit confused about using dynamic properties and whether I should be
using synthesize to create the setter/getters on these fields. Is it
appropriate (or more importantly, required) to add a line like this to my
MyEntity NSManagedObject?
@synthesize origText,title;

Is it OK to use @synthesize and @dynamic together? I assume so since dynamic
is just telling compiler that these attributes exist...

And finally, even stranger... when I do add the synthesize call to my
NSManagedObject, I see some other odd behavior
1) I get a compiler error about ivars which I got around by declaring these
vars in the header
2) the first time the app runs, the table column does not show the title
field (like it can't access it) but when I click on the table to give it
focus, the titles show up.

I hope I explained all that well enough - there are some odd problems
coupled with a lack of understanding of what I'm doing on my part !

cheers
___

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: iPhone SDK question

2008-03-07 Thread mmalc crawford


On Mar 7, 2008, at 8:06 AM, John Newlin wrote:


Ok, I realize this is not a Cocoa question, please don't flog me.


Please re-read and adhere to your NDA and to the messages from the  
moderators...



From: Scott Anguish <[EMAIL PROTECTED]>
Date: March 6, 2008 4:35:34 PM PST
To: Kevin Vanwulpen <[EMAIL PROTECTED]>
Cc: Cocoa-dev@lists.apple.com
Subject: [moderator] Re: Presumably iphone does Objective-C 2.0?

Folks,

Please remember that this is not public information.  Even the  
documentation requires an NDA and login to get access.


Succinctly, the iPhone can't be discussed here.

WWDR does have more information forthcoming.


___

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]


iPhone SDK question

2008-03-07 Thread John Newlin
Ok, I realize this is not a Cocoa question, please don't flog me.   
Hopefully they'll make an iPhone mailing list..


Anyhow, has anyone been able to run an app on a device yet, I get an  
error message when I try to load my app onto the phone.  The simulator  
works fine.


Thanks,

-john

___

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: GetMonitorFromWindow

2008-03-07 Thread Roy Lovejoy


On Mar 6, 2008, at 9:48 PM, Apparao Mulpuri wrote:


So you mean --- there is no APIs avialable.


no, there are of course APIs available.

I was just trying to help you

a) not alienate your customers
b) avoid work that does not need to be coded.


___

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: IKImageBrowserView crash when providing it lots lots of pictures?

2008-03-07 Thread Julien Jalon
IKImageBrowserView is known to support something like 250,000 images  
so I'd look somewhere else.


Providing the full crash stack trace might help understand what object  
you (or some other place) is likely to be over-released.


Also, enabling NSZombie might help you debugging the problem.

--
Julien

Sent from my iPhone

Le 7 mars 08 à 22:34, Scott.D.R <[EMAIL PROTECTED]> a  
écrit :



Greetings everyone.
As the title mentioned, I am using the IKImageBrowserView to provide  
a quick preview of many pictures.
However, I found my application regularly crashed. The GDB outputs  
complained it met something like:

"IKImagedatabase CFHash..." and so on.

It seems that it is related to the image kit database hash problem.  
From which we can image the problem may come from the huge number of  
pictures(approximately over 3,000).


Finally, I reduced the picture number to 2500, 2000, 1500, 1000 ...  
350 ... 250. The problem continued. At last, I provided it with 100.  
Thanks to god, the GDB finally got quiet.


So I am wondering whether there exists some top limit for the number  
of pictures to be displayed with IKImageBrowserView?


Thank you very much for any reply.
Best regards.
___

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/jjalon%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]


IKImageBrowserView crash when providing it lots lots of pictures?

2008-03-07 Thread Scott . D . R

Greetings everyone.
As the title mentioned, I am using the IKImageBrowserView to provide a  
quick preview of many pictures.
However, I found my application regularly crashed. The GDB outputs  
complained it met something like:

"IKImagedatabase CFHash..." and so on.

It seems that it is related to the image kit database hash problem.  
From which we can image the problem may come from the huge number of  
pictures(approximately over 3,000).


Finally, I reduced the picture number to 2500, 2000, 1500, 1000 ...  
350 ... 250. The problem continued. At last, I provided it with 100.  
Thanks to god, the GDB finally got quiet.


So I am wondering whether there exists some top limit for the number  
of pictures to be displayed with IKImageBrowserView?


Thank you very much for any reply.
Best regards.
___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: How to debug a nib loading error?

2008-03-07 Thread Kyle Sluder
On Fri, Mar 7, 2008 at 1:36 AM, Steve Cronin <[EMAIL PROTECTED]> wrote:
>  I have the [NSException raise] as a Global breakpoint but it doesn't
>  fire.
>
>  Using the po command I can tell that MainMenu is the nib involved;
>  the prefs window is in a separate nib...
>
>  How do I track this down?

Have you tossed a breakpoint at the top of -awakeFromNib?  That would
let you step through and see exactly what fires the exception.

--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: Grabbing current Safari webpage url

2008-03-07 Thread has

Adam Leonard wrote:


If you are looking to do it in Applescript (you want it to work in
10.4, for example)



ObjC-appscript supports Panther onwards, and is MIT-licensed so you  
can freely include it in your application bundle for distribution.


HTH

has
--
http://appscript.sourceforge.net

___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]


Re: How to debug a nib loading error?

2008-03-07 Thread Quincey Morris


On Mar 6, 2008, at 23:54, Steve Cronin wrote:


If I set the NSZombieEnabled variable to YES I get the following:
#0  0x9282b36d in -[NSException raise]
#1  0x92852247 in +[NSException raise:format:]
#2  0x928da79b in logMessageAndRaise
#3  0x927dc8af in NSPopAutoreleasePool
#4  0x932849d8 in loadNib
#5	0x932843d9 in +[NSBundle(NSNibLoading)  
_loadNibFile:nameTable:withZone:ownerBundle:]
#6	0x9328403a in +[NSBundle(NSNibLoading)  
loadNibFile:externalNameTable:withZone:]

#7  0x93283f7c in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#8  0x93283cc3 in NSApplicationMain
#9  0x00405ffc in main at main.m:18
Console:
2008-03-07 01:33:24.728 XYZ[372] *** Selector 'release' sent to  
dealloced instance 0x1baba2c0 of class NSConcreteData.

Break at '-[_NSZombie release]' to debug.

NOTE:  I do an 'API' & and a Full-Text Search in the documentation  
for 'NSConcreteData' and there is nothing!  Not a single reference.   
Google yields more but NSConcreteData is definitely not used  
directly by my app.


The class of the the dealloced object is not *necessarily* relevant.  
(If the block of memory used for an object of class A was released  
when you still had a pointer to it, then alloced and dealloced for a  
transient object of class B, then if you released your pointer-to-A  
again, you'd get a message for the "wrong" class.)


One explanation for what you're seeing is that you've overreleased  
(possibly but not necessarily in your app delegate awakeFromNib) an  
object that was just loaded from the nib. If the nib loading code  
still had a retain on the object when you released it, the error might  
not show up till long after the spurious release.


You should carefully check your awakeFromNib methods to see if you  
release (directly or indirectly) something from the nib you didn't  
retain. Also check any initWithCoder methods for custom subclasses  
(e.g. of views) in your nib for similar errors, since that initializer  
gets called during the nib loading process for every object as it is  
unarchived.


(I don't think you'd go far wrong in assuming that EXC_BAD_ACCESS ==  
"I released something I shouldn't have" unless proved otherwise. At  
least, that's what it has meant 99% of the times I've seen it in my  
debugging.)

___

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: Grabbing current Safari webpage url

2008-03-07 Thread has

Steve Sheets wrote:



Is there a way of finding out what is the current topmost webpage
being viewed by Safari? Somehow then grabbing the url & title of that
page?


Using objc-appscript (http://appscript.sourceforge.net/objc-appscript.html 
):


#import 
#import "SFGlue/SFGlue.h"

// To make Safari glue:  osaglue  -o SFGlue  -p SF  Safari

int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

	SFApplication *safari = [[SFApplication alloc] initWithBundleID:  
@"com.apple.safari"];


if ([safari isRunning]) {

SFReference *docRef = [[safari documents] at: 1];

NSError *err;

// get front document's name
id name = [[[docRef name] get] sendWithError: &err];

if (name)
NSLog(@"Title: %@", name);
else
NSLog(@"Error:\n%@", err);

// get its URL
id url = [[[docRef URL] get] sendWithError: &err];

if (url)
NSLog(@"URL: %@", url);
else
NSLog(@"Error:\n%@", err);

} else
NSLog(@"Safari is not running.");

[safari release];
[pool drain];
return 0;
}

HTH

has
--
http://appscript.sourceforge.net

___

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

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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

This email sent to [EMAIL PROTECTED]