NSFileHandle fileHandleForUpdatingAtPath never returns

2008-05-28 Thread Denis Bohm
When another application has a device file open and I try to use  
NSFileHandle fileHandleForUpdatingAtPath to open the same device file,  
the call just seems to hang and never return.  The API documentation  
doesn't say what should happen in this case.  Does anyone know why it  
isn't returning?  What I would like is for it to return with nil or  
throw an exception...

___

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: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Chris Hanson

On May 27, 2008, at 9:06 PM, Jens Alfke wrote:


On 27 May '08, at 1:40 PM, Kyle Sluder wrote:


You're looking for +[NSApplication
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:],


I'm not surprised the OP didn't find this … it's my candidate for  
Most Misplaced Cocoa Method.


I suspect the general sheet methods (which are instance methods, not  
class methods) are on NSApplication for largely historical reasons.   
If you look at , you'll see that NSApplication  
has a couple of instance methods dealing with running a modal session  
"relative to" a window:


- (NSInteger)runModalForWindow:(NSWindow *)theWindow relativeToWindow: 
(NSWindow *)docWindow;
- (NSModalSession)beginModalSessionForWindow:(NSWindow *)theWindow  
relativeToWindow:(NSWindow *)docWindow;


These are effectively the OpenStep predecessor to sheets.  They're  
preceded by comments indicating that they're deprecated, but are not  
formally tagged as such in the headers.


There are also similar -- and similarly-deprecated -- functions in  
 for running alert panels relative to a window.


In both cases, sheets are called out as the replacement technology,  
and the replacements are defined practically right next to the  
deprecated functionality.


  -- Chris

___

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: Attaching file to an email using Cocoa APIs

2008-05-28 Thread Kiel Gillard
Hi Palav,
Please see  for more
information. Searching this list may also give you other answers.

Kiel

Hi all,
>
> I want to create an email using email client & want to attach a file to that
> email. I did some analysis on this. With Apple Mail & Microsoft Entourage,
> it is possible using Applescript since both the applications are scriptable.
> I want to know is there any other way (framework/APIs) to achieve? With
> applescript approach, it is possible for those email clients which are
> scriptable but what if I want to make it for non-scriptable application? I
> do not want to use UI scripting for this. How much support does Cocoa
> provide for mailto protocol?
>
> Thanks,
> Palav
>
>
___

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: Attaching file to an email using Cocoa APIs

2008-05-28 Thread Scott Anguish


On May 29, 2008, at 12:33 AM, parag vibhute wrote:


Hi all,

I want to create an email using email client & want to attach a file  
to that
email. I did some analysis on this. With Apple Mail & Microsoft  
Entourage,
it is possible using Applescript since both the applications are  
scriptable.
I want to know is there any other way (framework/APIs) to achieve?  
With

applescript approach, it is possible for those email clients which are
scriptable but what if I want to make it for non-scriptable  
application? I

do not want to use UI scripting for this. How much support does Cocoa
provide for mailto protocol?


the mailto protocol doesn't support attaching files

you can't script apps that aren't scriptable.




___

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: 10.5.3 Release Notes?

2008-05-28 Thread Scott Anguish


On May 28, 2008, at 11:31 PM, Kyle Sluder wrote:


Hi,

This is more a question for Tech Pubs or DTS than anyone, I guess, but
are there/will there be developer release notes for 10.5.3?  Can
anyone confirm any previous show-stoppers are fixed (like the
NSOpenPanel bug that essentially makes garbage-collected Cocoa apps an
exercise in failure)?



this is where I'd insert the 'this isn't an official support channel'  
template text.


There are rarely, if ever, developer release notes for x.x.* releases.  
I can't recall a situation where we've published them in the last 5  
years.


___

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]


Attaching file to an email using Cocoa APIs

2008-05-28 Thread parag vibhute
Hi all,

I want to create an email using email client & want to attach a file to that
email. I did some analysis on this. With Apple Mail & Microsoft Entourage,
it is possible using Applescript since both the applications are scriptable.
I want to know is there any other way (framework/APIs) to achieve? With
applescript approach, it is possible for those email clients which are
scriptable but what if I want to make it for non-scriptable application? I
do not want to use UI scripting for this. How much support does Cocoa
provide for mailto protocol?

Thanks,
Palav

-- 

There are many things in your life that will catch your eye but only a few
will catch your heartpursue those'.
___

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: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Graham Cox
Here's a trivial category to address this. Whether it's really worth  
using is hard to say, but for what it's worth:



@interface NSWindow (SheetAdditions)

- (void)	beginSheet:(NSWindow*) sheet modalDelegate:(id) modalDelegate  
didEndSelector:(SEL) didEndSelector contextInfo:(void*) contextInfo;
- (void)	beginSheetModalForWindow:(NSWindow*) docWindow modalDelegate: 
(id) modalDelegate didEndSelector:(SEL) didEndSelector contextInfo: 
(void*) contextInfo;


@end


@implementation NSWindow (SheetAdditions)


- (void)	beginSheet:(NSWindow*) sheet modalDelegate:(id) modalDelegate  
didEndSelector:(SEL) didEndSelector contextInfo:(void*) contextInfo

{
	[NSApp beginSheet:sheet modalForWindow:self  
modalDelegate:modalDelegate didEndSelector:didEndSelector  
contextInfo:contextInfo];

}


- (void)	beginSheetModalForWindow:(NSWindow*) docWindow modalDelegate: 
(id) modalDelegate didEndSelector:(SEL) didEndSelector contextInfo: 
(void*) contextInfo;

{
	[NSApp beginSheet:self modalForWindow:docWindow  
modalDelegate:modalDelegate didEndSelector:didEndSelector  
contextInfo:contextInfo];

}


@end



On 29 May 2008, at 1:29 pm, Scott Ribe wrote:


I agree with your assessment. What business has NSApplication
providing this method? it doesn't make sense.


Probably because it involves the run loop and event dispatch, since  
the
running a window as a sheet must ensure that the window to which the  
sheet
is attached does not receive events, yet a click in that parent  
window must
bring the pair forward... Further, I'll bet it's also there because  
the
method to run a window application-modally was there first. So if  
you think
about what the method must *really* do, it no longer appears to be  
so bound
to the window, because it requires doing things that are clearly not  
the
responsibility of the window. Yes, the method could be in NSWindow  
and call
on NSApplication to get that done, but, should a window really be  
able to

have such a drastic effect on the events going to other windows???

But I had the same difficulty as everybody else locating it the  
first time.

And then again, later, when I had not used it for a while ;-)

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




___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Jens Alfke


On 28 May '08, at 8:29 PM, Scott Ribe wrote:


Yes, the method could be in NSWindow and call
on NSApplication to get that done, but, should a window really be  
able to

have such a drastic effect on the events going to other windows???


It doesn't. A sheet doesn't change anything in the app's overall  
state, since it's asynchronous. The event loop runs normally and  
dispatches events normally. The most significant change is that the  
host window ignores most events (and just beeps) while it has a sheet  
open, but the app itself shouldn't care about that.


In any case, regardless of where the implementation of the  
functionality lives, the API should be designed in a way that makes  
sense conceptually to clients. Even if it was NSApplication or  
NSRunLoop that had to do most of the work of opening a sheet, it would  
be a simple matter for a public NSWindow method to call a private  
implementation method elsewhere. There are a number of other cases of  
that. (For example, -[NSDictionary initWithContentsOfFile:] is  
probably just a wrapper around NSPropertyListSerialization.)


—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: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Kyle Sluder
On Wed, May 28, 2008 at 11:29 PM, Scott Ribe <[EMAIL PROTECTED]> wrote:
> Probably because it involves the run loop and event dispatch, since the
> running a window as a sheet must ensure that the window to which the sheet
> is attached does not receive events, yet a click in that parent window must
> bring the pair forward...

Hrm.  I thought that at first but then I came to the conclusion that
this argument doesn't really hold water.  Plenty of operations on
view-level code are going to affect the run loop mode (-[NSResponder
presentError:], for example), and event dispatch is only relevant to
the NSWindow to which the sheet is attached anyway.

I can live with "it was put in the wrong place", and Jens makes a
point that this seems like a mechanical transformation is possible,
which is usually further evidence that something's wrong.
-[SomeSingleton makeThisObject:doThis:] instead of -[ThisObjectClass
doThis:] seems to actually fit the definition of the anti-pattern.  Oh
well, it's not *broken*, and that's the important part.

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


10.5.3 Release Notes?

2008-05-28 Thread Kyle Sluder
Hi,

This is more a question for Tech Pubs or DTS than anyone, I guess, but
are there/will there be developer release notes for 10.5.3?  Can
anyone confirm any previous show-stoppers are fixed (like the
NSOpenPanel bug that essentially makes garbage-collected Cocoa apps an
exercise in failure)?

--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: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Scott Ribe
> I agree with your assessment. What business has NSApplication
> providing this method? it doesn't make sense.

Probably because it involves the run loop and event dispatch, since the
running a window as a sheet must ensure that the window to which the sheet
is attached does not receive events, yet a click in that parent window must
bring the pair forward... Further, I'll bet it's also there because the
method to run a window application-modally was there first. So if you think
about what the method must *really* do, it no longer appears to be so bound
to the window, because it requires doing things that are clearly not the
responsibility of the window. Yes, the method could be in NSWindow and call
on NSApplication to get that done, but, should a window really be able to
have such a drastic effect on the events going to other windows???

But I had the same difficulty as everybody else locating it the first time.
And then again, later, when I had not used it for a while ;-)

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


___

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

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

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

This email sent to [EMAIL PROTECTED]


Ending Editing when Doc Saves?

2008-05-28 Thread David Carlisle
If I'm adding text to an NSTextField, then I select Save, somehow the  
message needs to get to the NSTextField wherever it is that it needs  
to terminate editing and send its contents to the model before the  
model is saved.  I don't see how I should go about implementing that?   
Any suggestions are welcome.



___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: SOLVED: Incompatible CoreData store format

2008-05-28 Thread Rick Mann
It was a false alarm; I was double-clicking the file in the Finder,  
and it was launching a sample app I had built just before. It ran so  
fast (and the very minor difference between active and inactive  
windows) led me to believe it was my app complaining, not the sample.  
Sorry for the noise.


--
Rick

___

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: Incompatible CoreData store format

2008-05-28 Thread Ben Trumbull

Rick,

Try cleaning all the targets and rebuilding the entire project. 
Create a new document instead of opening an existing one.  You're 
probably either getting an old model, a weird union of models, or a 
corrupted model from previous work.


If that doesn't help, you can try adding the document's store to the 
NSPersistentStoreCoordinator yourself, and grab the NSError.  You'll 
want the data in the NSError's userInfo.


You can compare the store's metadata with the NSManagedObjectModel's 
version hashes.


You can use fs_usage to see what files are being opened, in case 
you've accidentally imported, say, iCal's .mom file.

--

-Ben
___

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]


DO woes

2008-05-28 Thread Western Botanicals

Cocoa Experts,

Thank you for your time. I am having a problem with DOs.

I am working on this time clock system to track the timecards of  
employees. The following code works perfectly if run as a non- 
distributed system. When I try to set it up for a distributed system,  
it works once, and the second time I get the following on the server  
app:


2008-05-28 16:28:27.734 TimeKeeper[1454:813] *** NSDistantObject  
initWithCoder: 0xe not given away for conn 0x152170
2008-05-28 16:28:27.734 TimeKeeper[1454:813] *** -[NSConcretePortCoder  
decodeInvocation]: no local target


If I step through the client-side I get this error on the server app,  
and both apps freeze up after stepping over line 94.


To the code: http://pastebin.org/39323  (server-side is on top, client- 
side starts on line 67)


Thank you,

Justin Giboney
___

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: Mount Point

2008-05-28 Thread Michael Watson
Now you're depedent on shell output and running three separate  
processes (plus invoking pipes and regexes). If you look at the source  
for the mount utility, you'll find that it gets a list of mounted  
volumes with the getmntinfo() function and then iterates over the  
statfs structs to print information. You could very quickly and easily  
dump the list of volumes with getmntinfo() and iterate over the found  
items until you encounter the entry for the device node you want. Then  
you can pull whatever info you want out of the statfs struct you found.



--
m-s


On 28 May, 2008, at 17:20, Dmitri Goutnik wrote:


On May 28, 2008, at 10:36 PM, Mr. Gecko wrote:

Hello I have a program that finds a device by it's device number  
such as /dev/disk2s3 how would I find out the mount point/name of  
that device?

If not how can I find the device number and name from a mount point?



mount | grep /dev/disk2s3 | sed 's/.* on \(.*\) (.*/\1/'

- Dmitri

___

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

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

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/mikey-san 
%40bungie.org


This email sent to [EMAIL PROTECTED]


___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: Mount Point

2008-05-28 Thread Mr. Gecko

Thanks that could work
On May 28, 2008, at 4:20 PM, Dmitri Goutnik wrote:


On May 28, 2008, at 10:36 PM, Mr. Gecko wrote:

Hello I have a program that finds a device by it's device number  
such as /dev/disk2s3 how would I find out the mount point/name of  
that device?

If not how can I find the device number and name from a mount point?



mount | grep /dev/disk2s3 | sed 's/.* on \(.*\) (.*/\1/'

- Dmitri



___

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: Mount Point

2008-05-28 Thread Herb Petschauer
2008/5/28 Mr. Gecko <[EMAIL PROTECTED]>:
> Hello I have a program that finds a device by it's device number such as
> /dev/disk2s3 how would I find out the mount point/name of that device?
> If not how can I find the device number and name from a mount point?

You can get the mount point from a device name (bsd name) by using

getmntinfo(), iterate the mount points and compare the statfs's
f_mntfromname field to your bsd name (i.e. match your device name).
On a match, copy the mount point from the f_mntonname field.

This advice has no warranties, do thoroughly read the getmntinfo man page.

You can always roll your own Objective-C version...

Cheers,
-H.
___

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: Mount Point

2008-05-28 Thread Dmitri Goutnik

On May 28, 2008, at 10:36 PM, Mr. Gecko wrote:

Hello I have a program that finds a device by it's device number  
such as /dev/disk2s3 how would I find out the mount point/name of  
that device?

If not how can I find the device number and name from a mount point?



mount | grep /dev/disk2s3 | sed 's/.* on \(.*\) (.*/\1/'

- Dmitri

___

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: Cover Flow in Cocoa?

2008-05-28 Thread Scott Anguish
Jens (ex-Apple) is speaking from experience here (not from using  
private API, but from how things work)


Apple can change private API at any time because Apple controls all  
the apps that use it.  Teams can be made aware that change "foo" is  
happening, and they can be required to make alter their code to be  
compliant with that change. Making an API public can require major  
changes, or very minor ones (changing the name of a method ever so  
slightly based on feedback internally).


As Jens said, this happens all the time.



I really can't stress how bad an idea using private API is.





On May 28, 2008, at 3:51 PM, Alexander Cohen wrote:


On May 28, 2008, at 11:08 AM, Jens Alfke wrote:



On 28 May '08, at 1:04 AM, Steve Harrison wrote:

On another thread on the Apple Mailing Lists, Alexander Cohen said  
that there is an API in Leopard for CoverFlow (see archived post  
here: "http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192424 
"):


Yeah, but that's private API. I wouldn't use that in a serious app,  
as it could change incompatibly or be taken out in any future OS  
release. (The former is quite likely: a primary reason why  
frameworks or classes don't get made public is that Apple hasn't  
polished their APIs yet. Making something public involves  
committing to supporting binary compatibility with it, which really  
limits what you can do with the API, and Apple doesn't take that  
lightly.)


I agree with you on that. The only reason i would see for using them  
is that the CoverFlow Private API is pretty much interchangeable  
with the ImageKit Browser API. This does at least show some sort of  
consistency and might point to the IKImageFlow being made public  
soon (I hope).


___

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

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

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

This email sent to [EMAIL PROTECTED]


[moderator] Re: iPhone - AddressBook Question

2008-05-28 Thread Scott Anguish

From the list guidelines


Discussing NDA and Private API
==

This list is not an appropriate forum for the discussion of issues  
that are covered by non-disclosure. Doing so will violate your NDA and  
the message may be forwarded to WWDR.


The discussion of Private API is also not appropriate for this list.  
Using private API is strongly discouraged as it can (and often does)  
change in future software revisions. If you feel some private API  
should be made public contact WWDR directly or file a bug using  
bugreporter.apple.com. Please do not advocate for those changes here,  
it isn't effective.




On May 28, 2008, at 12:42 PM, James Cicenia wrote:


Hello -

I am new to iPhone and Cocoa, but, am definitely enjoying learning it.

Anyway, I was wondering if it was possible for my application to have
its own separate address book?




___

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: Cover Flow in Cocoa?

2008-05-28 Thread Scott Anguish


On May 28, 2008, at 4:04 AM, Steve Harrison wrote:

On another thread on the Apple Mailing Lists, Alexander Cohen said  
that there is an API in Leopard for CoverFlow (see archived post  
here: "http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192424 
"):


there is no public, useable, API for Coverflow.

reverse engineering, and using, a private API is bad. your app will  
break in the future.



___

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: Mount Point

2008-05-28 Thread Mr. Gecko

That is a possibility.
On May 28, 2008, at 3:51 PM, Randall Meadows wrote:


On May 28, 2008, at 12:36 PM, Mr. Gecko wrote:

Hello I have a program that finds a device by it's device number  
such as /dev/disk2s3 how would I find out the mount point/name of  
that device?

If not how can I find the device number and name from a mount point?


One brute force way would be to use NSTask to call 'df' and parse  
the output; that provides you both the device names and their mount  
points.




___

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: Incompatible CoreData store format

2008-05-28 Thread Rick Mann


On May 28, 2008, at 13:53:36, Matt Long wrote:


Yes. See this post.

http://www.matthew-long.com/2007/11/02/the-managed-object-model-version-used-to-open-the-persistent-store-is-incompatible-with-the-one-that-was-used-to-create-the-persistent-store/



Thank you, but this does not appear to be my problem. There doesn't  
seem to be either a directory for my app in any Application Support  
directory, nor the code you mention for -applicationSupportFolder. I'm  
still stumped.


--
Rick

___

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: Mount Point

2008-05-28 Thread stephen joseph butler
On Wed, May 28, 2008 at 3:51 PM, Randall Meadows <[EMAIL PROTECTED]> wrote:
> On May 28, 2008, at 12:36 PM, Mr. Gecko wrote:
>
>> Hello I have a program that finds a device by it's device number such as
>> /dev/disk2s3 how would I find out the mount point/name of that device?
>> If not how can I find the device number and name from a mount point?
>
> One brute force way would be to use NSTask to call 'df' and parse the
> output; that provides you both the device names and their mount points.

A better way would be to use 'diskutil info -plist /dev/diskXsY'. An
even better way would be to use DADiskCreateFromBSDName followed by
DADiskCopyDescription. I think the mount point is somewhere in the
description.
___

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: Incompatible CoreData store format

2008-05-28 Thread Matt Long

Yes. See this post.

http://www.matthew-long.com/2007/11/02/the-managed-object-model-version-used-to-open-the-persistent-store-is-incompatible-with-the-one-that-was-used-to-create-the-persistent-store/

hth

-Matt


On May 28, 2008, at 2:41 PM, Rick Mann wrote:

In my simple CoreData document app, if I create a bit of data and  
save it, then try to re-open it, I get the following complaint:


"The document “Test.binary” could not be opened. The model  
configuration used to open the store is incompatible with the one  
that was used to create the store."


Am I overlooking something?

--
Rick

___

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/matt.long%40matthew-long.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: Mount Point

2008-05-28 Thread Randall Meadows

On May 28, 2008, at 12:36 PM, Mr. Gecko wrote:

Hello I have a program that finds a device by it's device number  
such as /dev/disk2s3 how would I find out the mount point/name of  
that device?

If not how can I find the device number and name from a mount point?


One brute force way would be to use NSTask to call 'df' and parse the  
output; that provides you both the device names and their mount points.


___

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]


Incompatible CoreData store format

2008-05-28 Thread Rick Mann
In my simple CoreData document app, if I create a bit of data and save  
it, then try to re-open it, I get the following complaint:


"The document “Test.binary” could not be opened. The model  
configuration used to open the store is incompatible with the one that  
was used to create the store."


Am I overlooking something?

--
Rick

___

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: NSFileManager's errors in 10.5, where are they documented?

2008-05-28 Thread Ali Ozer
Messages corresponding to the errors defined in FoundationErrors.h and  
other NSCocoaErrorDomain errors should be pretty decent, although they  
may be too generic in some cases. If you want to specialize them, then  
you can certainly provide your own localized strings in the userInfo  
dictionary, which will override the default ones.

Ali



On May 28, 2008, at 10:45 , Jonathan Dann wrote:


Thanks Jens and Ali, I appreciate your time.

On 26 May 2008, at 20:15, Ali Ozer wrote:

In general Cocoa classes, including NSFileManager, return errors  
just in the domain NSCocoaErrorDomain.   So all the possible errors  
should be listed in FoundationErrors.h.


However, there may of course be underlying errors; these are often  
in the POSIX domain.  Note that you can never count on the presence  
of underlying errors, and they may change between releases.


I'd forgotten about underlying errors, thanks!


Ali

On May 26, 2008, at 11:04 , Jens Alfke wrote:




NSFileManager is probably going to return errors in  
NSPOSIXErrorDomain, since it mostly makes Unix system calls. Those  
are defined in .


Some methods might use CarbonCore FileManager calls, which would  
return errors in NSOSStatusErrorDomain. Those are defined in  
.


—Jens___



So in the real-world is it common to just present file manager- 
related errors other than the basic "file exists - replace/ 
overwrite"? In the case of, for example, errors that occur when the  
filesystem is full, do many devs write their own NSLocalizedString  
to explain to the user what's going on? Is it normal for this to be  
done for each of the errors listed in these headers or are the  
standard Cocoa ones sufficient?  Does the system set strings for the  
POSIX ones as standard at all? I ask this as POSIX error 17 raised  
during a copy operation (file already exists at destination exists)  
gives a pretty succinct error message that I think I should polish a  
little.


Thanks again,

Jon


___

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: NSPredicate containing contains

2008-05-28 Thread Keary Suska
5/28/08 1:52 PM, also sprach [EMAIL PROTECTED]:

> NSString *predicateFormat = @"%@ contains %K";
> NSPredicate *predicate = [NSPredicate predicateWithFormat:
> predicateFormat, searchString, kMDItemFSName];

See my follow-up--I had the arguments backwards. I am surprised that the
above works, but I can see that it could possibly.
 
> NSString *predicateFormat = @"%@ contains kMDItemFSName";
> NSPredicate *predicate = [ NSPredicate predicateWithFormat:
> predicateFormat, searchString ];

This shouldn't work at all--it may not generate an error, but it shouldn't
find anything, AFAICT.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


___

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] CocoaHeads, Stockholm (Sweden) - First meeting ever, June 2

2008-05-28 Thread Mattias Arrelid
Hi everyone,

It is with great joy I invite you to the very first CocoaHeads
Stockholm (Sweden) session. We'll kick of next Monday (June 02) at the
Spotify office at Humlegårdsgatan 20 (Stockholm), at 18:00 CET. We'll
start with a short introduction of ourselves, and then talk about the
coming WWDC and our expectations (nothing fancy, just a discussion
where everyone is welcome to share their thoughts on Steve's upcoming
keynote). There's a projector available if anyone wants to bring their
laptop and show stuff for the rest of the audience.

During the meeting, we will also try to plan the coming sessions;
guest speakers, location etc.

Finally (for those who want); after the meeting, we'll go out together
and try to find some place to get some tasty food.

Questions? Just reply to this mail (do _not_ use the "Reply all"
option) and I'll get back to you in a jiffy.

Looking forward to see you next Monday; welcome!

Regards
Mattias
___

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 Classes from C++?

2008-05-28 Thread jeffs87

like C++ objects as member
variables of an ObjC object


I have a little sample program from 2002 by Aaron Hillegass that shows 
you how to do that.  It doesn't show you how to use Cocoa from a C++ 
object though.  I looked for it online but couldn't find it again. I 
can email it to whoever is interested.  I had to create a new project 
and make one change in - (void)drawRect:(NSRect)r to get it to compile.


Jeff

___

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: NSPredicate containing contains

2008-05-28 Thread Gerriet M. Denkmann


On 29 May 2008, at 02:02, [EMAIL PROTECTED] wrote:



5/28/08 12:10 PM, also sprach [EMAIL PROTECTED]:


NSString *searchString = @"SpoD";
NSString *predicateFormat = @"kMDItemFSName contains %@";
NSPredicate *predicate = [ NSPredicate predicateWithFormat:
predicateFormat, searchString ];

NSMetadataQuery *query = [[NSMetadataQuery alloc] init];
[ query setPredicate: predicate];  // < creates exception

NSComparisonPredicate with left expression which is not
NSKeyPathExpressionType given to NSMetadataQuery ("SpoD" IN
kMDItemFSName)

When I use beginswith, endswith or == instead of "contains" it works
fine.

So how can I find all filenames wich contain a given string? (Btw.
"matches" also does not work).


kMDItemFSName is not an attribute name--it is a constant that  
represents an

attribute name.

OTOH, try:

NSString *predicateFormat = @"%K contains %@";
NSPredicate *predicate = [NSPredicate  
predicateWithFormat:predicateFormat,

searchString, kMDItemFSName];


Following your suggestion I found two solutions:

NSString *predicateFormat = @"%@ contains %K";
NSPredicate *predicate = [NSPredicate predicateWithFormat:  
predicateFormat, searchString, kMDItemFSName];


or:

NSString *predicateFormat = @"%@ contains kMDItemFSName";
NSPredicate *predicate = [ NSPredicate predicateWithFormat:  
predicateFormat, searchString ];


The predicate seems sort of backwards - but at least it works.

Thanks a lot for your suggestion!

Kind regards,

Gerriet.

___

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: Cover Flow in Cocoa?

2008-05-28 Thread Alexander Cohen


On May 28, 2008, at 11:08 AM, Jens Alfke wrote:



On 28 May '08, at 1:04 AM, Steve Harrison wrote:

On another thread on the Apple Mailing Lists, Alexander Cohen said  
that there is an API in Leopard for CoverFlow (see archived post  
here: "http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192424 
"):


Yeah, but that's private API. I wouldn't use that in a serious app,  
as it could change incompatibly or be taken out in any future OS  
release. (The former is quite likely: a primary reason why  
frameworks or classes don't get made public is that Apple hasn't  
polished their APIs yet. Making something public involves committing  
to supporting binary compatibility with it, which really limits what  
you can do with the API, and Apple doesn't take that lightly.)


I agree with you on that. The only reason i would see for using them  
is that the CoverFlow Private API is pretty much interchangeable with  
the ImageKit Browser API. This does at least show some sort of  
consistency and might point to the IKImageFlow being made public soon  
(I hope).


AC
___

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: NSPredicate containing contains

2008-05-28 Thread Keary Suska
5/28/08 12:10 PM, also sprach [EMAIL PROTECTED]:

> NSString *searchString = @"SpoD";
> NSString *predicateFormat = @"kMDItemFSName contains %@";
> NSPredicate *predicate = [ NSPredicate predicateWithFormat:
> predicateFormat, searchString ];
> 
> NSMetadataQuery *query = [[NSMetadataQuery alloc] init];
> [ query setPredicate: predicate];  // < creates exception
> 
> NSComparisonPredicate with left expression which is not
> NSKeyPathExpressionType given to NSMetadataQuery ("SpoD" IN
> kMDItemFSName)
> 
> When I use beginswith, endswith or == instead of "contains" it works
> fine.
> 
> So how can I find all filenames wich contain a given string? (Btw.
> "matches" also does not work).

kMDItemFSName is not an attribute name--it is a constant that represents an
attribute name.

OTOH, try:

NSString *predicateFormat = @"%K contains %@";
NSPredicate *predicate = [NSPredicate predicateWithFormat:predicateFormat,
searchString, kMDItemFSName];

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


___

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]


Mount Point

2008-05-28 Thread Mr. Gecko
Hello I have a program that finds a device by it's device number such  
as /dev/disk2s3 how would I find out the mount point/name of that  
device?

If not how can I find the device number and name from a mount point?
___

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: NSMetadataItem attributes

2008-05-28 Thread Hamish Allan
Hi Gerriet,

On Wed, May 28, 2008 at 5:35 PM, Gerriet M. Denkmann
<[EMAIL PROTECTED]> wrote:
>
> I have an NSMetadataItem, which gives me via attributes a list of keywords.
>
> But: kMDItemPath is not in this list, although
>NSString *itemPath = [ item valueForAttribute: (NSString
> *)kMDItemPath ];
> gives a reasonable answer.

kMDItemPath is not indexed, and isn't fetched unless you explicitly
ask for it. Looking it up is an expensive operation (one mach message
round trip).

You'll find more about this in the archives for [EMAIL PROTECTED]

> Where can I find a correct list of attributes? And where is the header for
> the missing attributes?

I think anything that's not in the header is not guaranteed to stick
around. Although I really can't see them getting rid of kMDItemID...

Hamish
___

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: Repost: NSAlert beeping

2008-05-28 Thread Dale Jensen

On May 28, 2008, at 12:37 PM, Sherm Pendley wrote:


I strongly suspected that at first, but you said your callback method
*was* being called - and it's called by the framework in response to
your own call to -endSheet:returnCode:. So now I'm confused. Were you
calling the callback method directly or something?



Yep, was calling it directly.


dale

--
Dale Jensen
Ntractive, LLC
[EMAIL PROTECTED]
http://www.ntractive.com



___

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

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

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

This email sent to [EMAIL PROTECTED]


Core animation bug?

2008-05-28 Thread Henk Kampman
According the the documentaion   bounds, boundsOrigin and boundsSize are animatable properties.


However trying to do something like:

NSRect newBounds = [myView bounds];
newBounds.origin.x += 100;

[[myView animator] setBounds: newBounds]

Will trigger the following exception

[ valueForUndefinedKey:]: this class is not key value  
coding-compliant for the key boundsSize.



Changing the code to:

NSRect newBounds = [myView frame];
newBounds.origin.x += 100;

[[myView animator] setFrame: newBounds]

Does not crash and animates as expected

Is the documentation wrong or is this a bug?



Henk





___

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]


NSPredicate containing contains

2008-05-28 Thread Gerriet M. Denkmann

NSString *searchString = @"SpoD";
NSString *predicateFormat = @"kMDItemFSName contains %@";
NSPredicate *predicate = [ NSPredicate predicateWithFormat:  
predicateFormat, searchString ];


NSMetadataQuery *query = [[NSMetadataQuery alloc] init];
[ query setPredicate: predicate];  //   < creates exception

NSComparisonPredicate with left expression which is not  
NSKeyPathExpressionType given to NSMetadataQuery ("SpoD" IN  
kMDItemFSName)


When I use beginswith, endswith or == instead of "contains" it works  
fine.


So how can I find all filenames wich contain a given string? (Btw.  
"matches" also does not work).


10.4.11.

Kind regards,

Gerriet.

___

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: NSFileManager's errors in 10.5, where are they documented?

2008-05-28 Thread Jonathan Dann

Thanks Jens and Ali, I appreciate your time.

On 26 May 2008, at 20:15, Ali Ozer wrote:

In general Cocoa classes, including NSFileManager, return errors  
just in the domain NSCocoaErrorDomain.   So all the possible errors  
should be listed in FoundationErrors.h.


However, there may of course be underlying errors; these are often  
in the POSIX domain.  Note that you can never count on the presence  
of underlying errors, and they may change between releases.


I'd forgotten about underlying errors, thanks!


Ali

On May 26, 2008, at 11:04 , Jens Alfke wrote:




NSFileManager is probably going to return errors in  
NSPOSIXErrorDomain, since it mostly makes Unix system calls. Those  
are defined in .


Some methods might use CarbonCore FileManager calls, which would  
return errors in NSOSStatusErrorDomain. Those are defined in  
.


—Jens___



So in the real-world is it common to just present file manager-related  
errors other than the basic "file exists - replace/overwrite"? In the  
case of, for example, errors that occur when the filesystem is full,  
do many devs write their own NSLocalizedString to explain to the user  
what's going on? Is it normal for this to be done for each of the  
errors listed in these headers or are the standard Cocoa ones  
sufficient?  Does the system set strings for the POSIX ones as  
standard at all? I ask this as POSIX error 17 raised during a copy  
operation (file already exists at destination exists) gives a pretty  
succinct error message that I think I should polish a little.


Thanks again,

Jon___

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: Repost: NSAlert beeping

2008-05-28 Thread Sherm Pendley
On Wed, May 28, 2008 at 1:19 PM, Dale Jensen <[EMAIL PROTECTED]> wrote:
>
> I was neglecting to call [NSApp endSheet:theSheet returnCode: 0];

I strongly suspected that at first, but you said your callback method
*was* being called - and it's called by the framework in response to
your own call to -endSheet:returnCode:. So now I'm confused. Were you
calling the callback method directly or something?

sherm--

-- 
Cocoa programming in Perl: http://camelbones.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: email

2008-05-28 Thread Dirk Stoop
You might also want to take a look at the scripts Apple pre-installs  
for usage with Mail.app


/Library/Scripts/Mail\ Scripts
(on Leopard, not sure if they're in the same place on Tiger installs)

There's a subfolder called 'Address Importers' that'll get you started  
with Entourage.


In Panther (and maybe Tiger) some scripts were included that could  
import a lot more from a couple of 3rd party email apps, those might  
prove interesting too if you can dig them up somewhere.


Good luck,
Dirk

On May 28, 2008, at 1:38 PM, [EMAIL PROTECTED] wrote:


Hi,

  I've build an email application,which doesn't using any email
clients.In this application i've to extract emails and email addresses
from other email clients(example mail.app,entourage etc).Which method
can i use for it?I searched this topic,then i got some topics related
to apple script.Is it right way to solve this problem?Or any other way
in cocoa?How can i import mailboxes to my email application?Hope
anybody can help me.

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/djstoop%40xs4all.nl

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: Repost: NSAlert beeping

2008-05-28 Thread Dale Jensen

Thanks to Jim Matthews, a solution for the archive:

I was neglecting to call [NSApp endSheet:theSheet returnCode: 0];

It would still be nice to hear from someone at Apple as regards the  
beeping, but this solves it for me.


Thanks, Jim!


dale

--
Dale Jensen
Ntractive, LLC
[EMAIL PROTECTED]
http://www.ntractive.com




___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: Repost: NSAlert beeping

2008-05-28 Thread Kevin Grant

Try linking with debug versions of the frameworks, these often
print info to the console on the nature of an error that may
otherwise just beep.

Kevin G.



(Nary a response from last post, I'll try again.)

I've got a situation where an alert, attached as a sheet, just beeps  
when it's called (instead of displaying and interacting with the  
user.)  I'm about 99.99% certain that this is being caused by a  
sheet that comes up prior to the alert (not at the same time -- the  
previous sheet is long gone, theoretically, from the window when  
this alert is called.)


Weird thing is that the exact same code in a different class works a- 
ok, so I'm a little mystified, but knowing why an alert would just  
beep, rather than come up, would be a great start.  The previous  
sheet is a progress metre, which comes up and goes away without any  
user involvement.  If I call the progress metre twice, there's  
another beep and the panel is displayed detached from the window.


The "endpanel" function, which does get called, contains nothing  
more than an orderOut:nil.  Adding a close call neither helps nor  
hinders.


So, what have I done to my window with this first sheet which causes  
subsequent alerts to beep instead of displaying?  Why does the  
computer just beep and not give me an error message or some other  
indication of what's wrong?


Thanks!


dale

___

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

2008-05-28 Thread Jens Alfke


On 28 May '08, at 9:56 AM, has wrote:

Not quite that bad. For example, getting all recipient names and  
addresses from the 'sent mailbox' on my 2.4GHz dual core MBP:


He did say "emails and email addresses", so I assume he wants the full  
content of each message too. That would be slower; although maybe not  
as slow as I pessimistically assumed.


—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: Storing miscellaneous singleton data in CoreData app?

2008-05-28 Thread Quincey Morris


On May 28, 2008, at 00:43, Rick Mann wrote:

I also want to display some data in the detail view that is global  
to the document. What's the best/easiest way to add that information  
to my document and make it available to a text field via bindings?  
Do I need to create additional CoreData schema? The thing is, there  
should only ever be one of this global data, not many rows in a table.


You may also want to look at:

http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/04_Department/chapter_5_section_1.html#/ 
/apple_ref/doc/uid/TP40002832-SW1


which talks about something similar. Note particularly the section  
"Adopting the Mediator Pattern", which may allow you to avoid writing  
fetches, depending how this "global" data is used.



___

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 - AddressBook Question

2008-05-28 Thread Mike Abdullah
As ever and ever and ever: iPhone SDK is under NDA. You cannot discuss  
it here.


On 28 May 2008, at 17:42, James Cicenia wrote:


Hello -

I am new to iPhone and Cocoa, but, am definitely enjoying learning it.

Anyway, I was wondering if it was possible for my application to have
its own separate address book?

Thanks
James Cicenia

___

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

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

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]


___

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

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

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

This email sent to [EMAIL PROTECTED]


Repost: NSAlert beeping

2008-05-28 Thread Dale Jensen

(Nary a response from last post, I'll try again.)

I've got a situation where an alert, attached as a sheet, just beeps  
when it's called (instead of displaying and interacting with the  
user.)  I'm about 99.99% certain that this is being caused by a sheet  
that comes up prior to the alert (not at the same time -- the previous  
sheet is long gone, theoretically, from the window when this alert is  
called.)


Weird thing is that the exact same code in a different class works a- 
ok, so I'm a little mystified, but knowing why an alert would just  
beep, rather than come up, would be a great start.  The previous sheet  
is a progress metre, which comes up and goes away without any user  
involvement.  If I call the progress metre twice, there's another beep  
and the panel is displayed detached from the window.


The "endpanel" function, which does get called, contains nothing more  
than an orderOut:nil.  Adding a close call neither helps nor hinders.


So, what have I done to my window with this first sheet which causes  
subsequent alerts to beep instead of displaying?  Why does the  
computer just beep and not give me an error message or some other  
indication of what's wrong?


Thanks!


dale

--
Dale Jensen
Ntractive, LLC
[EMAIL PROTECTED]
http://www.ntractive.com




___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: email

2008-05-28 Thread has

Jens Alfke wrote:


On 28 May '08, at 4:38 AM, [EMAIL PROTECTED] wrote:


I've build an email application,which doesn't using any email
clients.In this application i've to extract emails and email  
addresses

from other email clients(example mail.app,entourage etc).


Importing messages from Mail via AppleScript may not be fast enough —
my highly scientific estimate* is "a couple of messages" a second.


Not quite that bad. For example, getting all recipient names and  
addresses from the 'sent mailbox' on my 2.4GHz dual core MBP:


set t to AMTime
tell application "Mail"
	set {n, a} to {name, address} of every recipient of every message of  
sent mailbox

end tell
set t to (AMTime) - t
return {durationInSeconds:t, messageCount:count n, names:items 1 thru  
3 of n, addresses:items 1 thru 3 of a}


Typical result:
durationInSeconds:1.332630157471,
messageCount:1594,
names:{{"John Brown"}, {"Jane Black", "Bob Green"}, {missing value}},
	addresses:{{"[EMAIL PROTECTED]"}, {"[EMAIL PROTECTED]", "[EMAIL PROTECTED]"}, {"[EMAIL PROTECTED] 
"}}}


Of course, you still have to flatten and recompose the lists, remove  
duplicate entries and maybe sort the rest into a sensible order, but  
you'll be quicker doing that in ObjC if you can.


What'll be best in practice really depends on the OP's requirements -  
e.g. will they hardwire the import code for each mail client into  
their application, or implement it as as user-customisable plug-in  
system - but if they want specific recommendations they'll need to  
give more details.


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

___

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

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

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

This email sent to [EMAIL PROTECTED]


iPhone - AddressBook Question

2008-05-28 Thread James Cicenia

Hello -

I am new to iPhone and Cocoa, but, am definitely enjoying learning it.

Anyway, I was wondering if it was possible for my application to have
its own separate address book?

Thanks
James Cicenia

___

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]


NSMetadataItem attributes

2008-05-28 Thread Gerriet M. Denkmann


I have an NSMetadataItem, which gives me via attributes a list of  
keywords.


But: kMDItemPath is not in this list, although
	NSString *itemPath = [ item valueForAttribute: (NSString *) 
kMDItemPath ];

gives a reasonable answer.

On the other hand, this aforementioned list of attributes contains:
kMDItemUsedDates,
kMDItemContentTypeTree,
kMDItemFSTypeCode,
kMDItemFSCreatorCode,
kMDItemFSFinderFlags,
kMDItemID
which are not declared in: /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/Metadata.framework/ 
Versions/A/Headers/MDItem.h  so that the compiler refuses to accept  
these.


Where can I find a correct list of attributes? And where is the  
header for the missing attributes?


All this in 10.4.11.

Kind regards,

Gerriet.




___

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: Prevent computer from going to sleep but _not_ disable dimming

2008-05-28 Thread Jere Gmail
Either you are doing something wrong or you have another app keeping
your screen on, like quicktime or vlc.


On Tue, May 27, 2008 at 11:26 AM, Manfred Schwind <[EMAIL PROTECTED]> wrote:
>> You have to use IdleActivity, that's the one I use and it works.
>
> Are you sure? I tried all constants, but all of them prevented the screen
> from dimming. But I _want_ the screen to dimm. I just want to prevent the
> computer from sleep, but dimming the screen is OK and allowed. But none of
> the constants did it that way. They all seem to combine sleeping and
> dimming.
>
> Mani
> --
> http://mani.de - friendly software
> iVolume - listen to music freehand
> LittleSecrets - the encrypted notepad
>
>
>
> ___
>
> 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/zon7mail%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>



-- 
http://zon7blog.wordpress.com/
And again we fall.
___

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: Storing miscellaneous singleton data in CoreData app?

2008-05-28 Thread Andrew Merenbach

Hi, Rick,

It's been a while since I did this, but I had a need for the exact  
thing that you are describing at one point.  Basically, in my document  
data model, I created another entity.  This entity had whatever  
properties I needed to make global.  I then used an NSObjectController  
(rather than any of its subclasses, such as NSArrayController,  
NSDictionaryController, or NSTreeController) and fetched the object/ 
property when I needed it using a fetch request.  As I say, it's been  
a while, but it worked very well for me, especially since I had  
several other properties that needed persistent storage, too.   
Granted, there may be an easier way, but I can't personally think of it.


I can try to dig up my exact code, if you like.  As I say, it's been a  
long time, but I must have it somewhere... ;)


Cheers,
Andrew

On May 28, 2008, at 12:43 AM, Rick Mann wrote:

I have a little CoreData app that seems to work as I want it to. I  
have a list in my UI and I can add and remove items to it, and a  
customized detail view that displays the data for the currently- 
selected item.


I also want to display some data in the detail view that is global  
to the document. What's the best/easiest way to add that information  
to my document and make it available to a text field via bindings?  
Do I need to create additional CoreData schema? The thing is, there  
should only ever be one of this global data, not many rows in a table.


TIA,
--
Rick

___

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]




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: Storing miscellaneous singleton data in CoreData app?

2008-05-28 Thread Jens Alfke


On 28 May '08, at 12:43 AM, Rick Mann wrote:

I also want to display some data in the detail view that is global  
to the document. What's the best/easiest way to add that information  
to my document and make it available to a text field via bindings?  
Do I need to create additional CoreData schema? The thing is, there  
should only ever be one of this global data, not many rows in a table.


I would create a new entity in your object model whose properties are  
the things you want to remember.
Then when you open the data store, fetch the single instance; if there  
isn't one, add one.


—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: if statement

2008-05-28 Thread Sherm Pendley
On Tue, May 27, 2008 at 6:04 PM, Sherman Pendley <[EMAIL PROTECTED]>
wrote:

And second, comparison of floating-point numbers is an inherently inaccurate
> in *any* programming language.*


I just realized - I forgot the footnote link the * is referring to here. :-(
Here 'tis:



It's titled "What Every Computer Scientist Should Know About Floating-Point
Arithmetic," It was written in '91, but it's every bit as relevant today as
it was back then. (We have long double now, but that's just more bits - the
basic principles are unchanged.)

sherm--

-- 
Cocoa programming in Perl: http://camelbones.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: NSFileHandle, performance of socket writing

2008-05-28 Thread Jens Alfke


On 28 May '08, at 2:18 AM, Doo-Hyun Jang wrote:


- 24.9% mach_kernel ml_set_interrupts_enabled
 ...
 ...
  - 15.9% mach_kernel find_user_regs


That just shows the time your thread spent blocked (it's down inside  
thread_block). CFNetwork classes do the real I/O on a background  
thread, typically, so you'd need to look at where all your threads are  
spending time.


Also, it's probably not CPU time that's slowing down the app. I would  
guess that you're sending the packets inefficiently (either many tiny  
packets, or waiting too long between sends.)



NSFileHandle *mSocketHandle;
...
[mSocketHandle writeData:[aPacket data]];


How many bytes are the packets? Could you show the loop that sends them?
Also, what code is receiving them on the other end? That could slow  
the whole transfer down too.



is it osx's system problem?


Not at all. The OS will have no trouble using all the bandwidth your  
network connection can give it. There must be something wrong in the  
way the app is providing the data. Show us a bit more of the code and  
we can help.


—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: Cover Flow in Cocoa?

2008-05-28 Thread Jens Alfke


On 28 May '08, at 1:04 AM, Steve Harrison wrote:

On another thread on the Apple Mailing Lists, Alexander Cohen said  
that there is an API in Leopard for CoverFlow (see archived post  
here: "http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192424 
"):


Yeah, but that's private API. I wouldn't use that in a serious app, as  
it could change incompatibly or be taken out in any future OS release.  
(The former is quite likely: a primary reason why frameworks or  
classes don't get made public is that Apple hasn't polished their APIs  
yet. Making something public involves committing to supporting binary  
compatibility with it, which really limits what you can do with the  
API, and Apple doesn't take that lightly.)


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

2008-05-28 Thread Jens Alfke


On 28 May '08, at 4:38 AM, [EMAIL PROTECTED] wrote:


I've build an email application,which doesn't using any email
clients.In this application i've to extract emails and email addresses
from other email clients(example mail.app,entourage etc).


Importing messages from Mail via AppleScript may not be fast enough —  
my highly scientific estimate* is "a couple of messages" a second.  
Importing someone's entire mail archive would take a long time.


What you can do instead is scan the mailbox files in ~/Library/Mail.  
The format is pretty simple, if you take a look. Folders per account  
(named like "[EMAIL PROTECTED]"), then inside a folder per  
mailbox, and the messages are in individual ".emlx" files that are  
basically raw RFC822 message bodies.


Alternatively, since the messages are all indexed by Spotlight, you  
can just use Metadata.framework to search for all the ones you want  
and get the info you need.


—Jens

* Quant Suff!

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: Cocoa Classes from C++?

2008-05-28 Thread Fritz Anderson

In response to Jens Alfke's suggestion of:


// MyObjCClass.h

#ifdef __cplusplus
class MyCppClass;
#else
typedef struct MyCppClass MyCppClass;
#endif

@interface MyObjCClass {
@private
MyCppClass *cppObject;
}

@end



On 28 May 2008, at 12:14 AM, Bill Bumgarner wrote:


On May 27, 2008, at 9:09 PM, Jens Alfke wrote:

On 27 May '08, at 8:59 PM, Bill Bumgarner wrote:
In this case, it will change the way that GC handles the pointer,  
depending on how the class is compiled.  GC is aware of the layout  
of objects and will scan only the fields that are marked __strong  
or are of an Objective-C object reference type.
But the pointer that's being lied about here is to a C++ object,  
which the collector should be ignoring anyway, right?


Unless you were to compile the class such that the objective-c world  
sees it as an Objective-C object pointer...   Then it would be  
scanned as if it were rooted in the GC world and, potentially, bad  
things could happen.


Jens is probably wise by now, but I am still confused (I think I have  
a block on the nuances of GC). In the sample code, cppObject is either  
a pointer to a C++ object, or a pointer to an anonymous struct,  
depending on whether the header is #included by an .mm or .m file.


Neither pointer seems to be to an Objective-C object. How then do your  
strictures on crossing ObjC objects with struct pointers apply here?


I get the problem with disguising an ObjC pointer as a void* or  
struct*. I hadn't thought of that, and am grateful to learn of it.


Related: Has alternative documentation emerged on GC, so I can get  
over my block?


— F

___

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: if statement

2008-05-28 Thread Sean McBride
On 5/28/08 10:11 AM, Graham Cox said:

>what is OB? Is it 1, 2, 3 etc? Or is it 0.99, 1.9?
>If the latter, what will "if (OB == 1)" produce - true or false? The
>point is that floating point values have limited precision (after all,
>you are trying to represent all possible numbers in just 32-bits -
>they just don't all fit!).

And for that gcc has -Wfloat-equal "Warn if floating point values are
used in equality comparisons."

--

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

___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: Which framework for Wifi?

2008-05-28 Thread Peter Burtis

On May 27, 2008, at 11:28 PM, J. Scott Tury wrote:

And in 10.5.2 the -x command line option does not work at all


Hrm... That's odd and disturbing.  But not *quite* true. :)

I'm using 'airport -x -s' in my little network jumper app to list  
networks in range, which--I just checked--*does* still give XML plist  
output in 10.5.2.  So it's not completely gone.


But like you say, the -x flag seems to be gone for everything else  
now.  I hadn't noticed that.  (Was it ever there? I can't remember  
ever playing with it although I'm sure I must have.)


*Sigh* The wonderful world of hacking around where you're not welcome.

-Pete
___

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: Crashes related to garbage collection?

2008-05-28 Thread Markus Müller
Please excuse me for taking so long to get back to this thread!


Thank you both for your answers. It's interesting that you think that those
crashes are related to the open panel. I also have several crash logs that
contain traces of open/save panel methode calls. If this doesn't get better
in 10.5.3 I will consider rewriting my application to run in GC unsupported
mode.


Regards,

Markus M.

On Mon, May 26, 2008 at 10:47 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote:

> On May 26, 2008, at 9:57 AM, Quincey Morris wrote:
>
>> Both of these look like the crashes you frequently get using Open
>> (NSOpenPanel) dialogs in a GC app. It's a known problem, with no known
>> workaround that I've seen (although someone did suggest that throwing away
>> the app's preferences file might reduce the frequency of the crashes for a
>> while).
>>
>
> The media browser in the open panel has a tendency to blow up GC'd apps.
> Unfortunately, if you select the media browser in any application, it will
> be the default selected item in the open panel in all applications.
>
> You should be able to workaround it by nuking the related preference item.
>
> 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/aquarius4792%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: NSImage display quality and zooming

2008-05-28 Thread Heinrich Giesen


On 28.05.2008, at 03:16, also wrote:


I've created a custom NSView that displays an image and allows the
user to zoom in and out.  The view works in general, but the quality
of the image displayed is not what I expect.  When I zoom in even
slightly on a high resolution image (300 dpi, 500x500) the image is
grainy and pixelated.


this is one of the FAQ in this list. The solution is:

image = [[NSImage alloc] initWithContentsOfURL:url];
[image setDataRetained:YES];  // <--

The docs say:


- (void)setDataRetained:(BOOL)flag

Retention of the source image data is important if the source of  
the image data could change, be moved, or be deleted. Data  
retention is also useful if you plan to resize an image frequently;  
otherwise, resizing occurs on a cached copy of the image, which can  
lose image quality during successive scaling operations. With data  
retention enabled, the image is resized from the original source data.





good luck


--
Heinrich Giesen
[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: DO problems

2008-05-28 Thread Aurélien Hugelé

I really wanted this patch to work, but in my tests, it does not work :

Here is my backtrace.

#0  0x939d4689 in _cache_getImp ()
#1  0x939c3bd0 in lookupMethodInClassAndLoadCache ()
#2  0x939c3c5b in object_cxxDestructFromClass ()
#3  0x939c4943 in _internal_object_dispose ()
#4  0x949f8f70 in NSDeallocateObject ()
#5  0x94a38570 in -[NSDistantObjectTableEntry dealloc] ()
#6  0x9156f5fa in CFRelease ()
#7  0x914fec8d in __CFArrayReleaseValues ()
#8  0x914ff00d in _CFArrayReplaceValues ()
#9  0x949faf6b in -[NSCFArray removeObjectAtIndex:] ()
#10 0x949fadd9 in -[NSMutableArray(NSMutableArray)  
removeObjectsAtIndexes:] ()

#11 0x94a3829a in invalidateProxy ()
#12 0x94a38023 in -[NSDistantObject dealloc] ()
#13 0x949f4d9f in NSPopAutoreleasePool ()
#14 0x25404120 in -[GDOPKPeer _connectToRemotePeerWithDictionary:] ()
#15 0x949fa15c in __NSThreadPerformPerform ()
#16 0x9156d62e in CFRunLoopRunSpecific ()
#17 0x9156dd18 in CFRunLoopRunInMode ()
#18 0x94a2db15 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#19 0x25407bca in -[GDOPKPeer _startPeer] ()



Aurélien,
Objective Decision Team




On 27 mai 08, at 21:08, Guy Meyer wrote:

Welcome to the Leopard club. Yes there is DO code that works fine  
with Tiger and faults on Leopard. The issue described below refers  
to remote DO (i.e. socketports) as opposed to local DO.


What I have found (after spending many hours on the issue)  is that  
if there are multiple DO connections between the same addresses and  
one of them is invalidated/ closed the result is that all of them  
are faulting.


The reason for this behavior is that when an nsconnection dies the  
socketport (which is also used by all other nsconnections to same  
address - in order to save resources) is getting released twice !!!  
( and on Tiger once). When the count reach zero the port is  
invalidated/deallocated and all other nsconnections using said  
socketport fail. Because of that the bug is not always reproducible  
and appears to behave randomly - a nightmare.


It seems that on Leopard (as opposed to Tiger) the socketport is  
observing the nsconnection and when it is closed and dies the  
socketport receives a notification and its reference count is  
decreased, beside some other code that decreases the count.


The solution is unbelievable simple (and I have found that there are  
no memory management issues with this solution - but better test for  
yourself). You should cancel the port observation of  
NSConnectionDidDieNotification, just after creating the port, as  
follows:


		clientPort = (NSPort *)[[NSSocketPort alloc]  
initRemoteWithProtocolFamily:PF_INET socketType:SOCK_STREAM  
protocol:IPPROTO_TCP address:serverAddress];
		[[NSNotificationCenter defaultCenter] removeObserver:clientPort  
name:NSConnectionDidDieNotification object:nil];



The above code does not create a problem on Tiger as the socketport  
is not observing NSConnectionDidDieNotification.


A bug was opened by ADC on my behalf in January 

It is a shame that a bug like this (which is neither fixed nor  
publicly published) causes so many people to waste their time, but  
this is a discussion for another list, I guess.


Update me if it works for you.

Guy Meyer



On May 27, 2008, at 2:41 AM, Ben Einstein wrote:

I, too, have encountered this nasty little problem on Leopard.  
Works fine on Tiger, but I see this error followed by a nice crash  
about 10% of time on my DO servers with Leopard. I have no idea  
what's going on and why it's fine 80% of the time and not the other.


Alex/Aurélien, have you found a solution?

Thanks,
Ben Einstein

On Mar 25, 2008, at 9:12 AM, Aurélien Hugelé wrote:


I encountered this very same problem with DO since Leopard.
I noticed that a large part of the DO backend has been rewritten  
in Leopard.


If you know how to fix/reproduce the problem, I'll be glad to know.

I suggest trying your program on a Tiger/Tiger configuration.. I'm  
pretty sure it will work as expected.



Aurélien,
Objective Decision Team




On 19 mars 08, at 01:58, Alexander Cohen wrote:

Hi, i have a server and client communication through DO.  
Connections are all set up then the client send a message to the  
server with itself as the first argument. The server should then  
just reply right away to the client using the first argument as  
the proxy. Problem is, im getting the error below when trying to  
send the response form the server back to the client. Any ideas  
what might be happening?


server received hello
*** NSDistantObject initWithCoder: 0x2 not given away for conn  
0x171a62f0

exceptionHandler:shouldHandleException:
-[NSConcretePortCoder decodeInvocation]: no local target


thanks

AC
___

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

Re: Cocoa Classes from C++?

2008-05-28 Thread Uli Kusterer

Am 28.05.2008 um 01:50 schrieb Todd Heberlein:
The gotchas that I often run into are: (1) Changing an Objective-C  
file to an Objective-C++ object (by renaming it to a .mm file) often  
causes me to rename a lot of files to .mm, because if the Objective- 
C class definition has a C++ object in it, every source code file  
that includes that Objective-C class definition needs to be renamed  
to a .mm file;



 You can also do something like the following in the header:

struct MyCppIVars;

@interface MyCppUsingClass : NSObject
{
struct MyCppIVars*  cppIVars;
}

@end

and then in the source file:

struct MyCppIVars
{
std::vector  myInts;
};

@implementation MyCppUsingClass

-(id) init
{
self = [super init];
if( self )
{
cppIVars = new MyCppIVars;
}
return self;
}

-(void) dealloc
{
delete cppIVars;
cppIVars = NULL;
[super dealloc];
}

@end

The headers only need to know it's a pointer, but doesn't have to know  
there's C++ stuff in it, and this way, any ivars you add to the struct  
are automatically constructed/destructed without the need to add more  
new/delete calls. This is handy boilerplate code. Also if you put all  
ivars (not just the C++ ones) in the struct, it avoids the fragile  
base class problem if you're exposing the ObjC class to plugins or  
whatever.


(2) I always declare my C++ objects in Objective-C classes as  
pointers, and then in the init method I allocate the C++ object;


 One trick I've seen here is to have a #ifdef __cplusplus check  
there, and then to typedef the C++ types to void* for pure-C or pure- 
ObjC callers.


Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





___

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

2008-05-28 Thread Mike Abdullah
I would reccommend you have a look at the Address Book framework for  
importing e-mail addresses.


On 28 May 2008, at 12:38, [EMAIL PROTECTED] wrote:


Hi,

  I've build an email application,which doesn't using any email
clients.In this application i've to extract emails and email addresses
from other email clients(example mail.app,entourage etc).Which method
can i use for it?I searched this topic,then i got some topics related
to apple script.Is it right way to solve this problem?Or any other way
in cocoa?How can i import mailboxes to my email application?Hope
anybody can help me.

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/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]


___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: Cocoa Classes from C++?

2008-05-28 Thread Thomas Engelmeier


On 28.05.2008, at 01:50, Todd Heberlein wrote:

The gotchas that I often run into are: (1) Changing an Objective-C  
file to an Objective-C++ object (by renaming it to a .mm file) often  
causes me to rename a lot of files to .mm, because if the Objective- 
C class definition has a C++ object in it, every source code file  
that includes that Objective-C class definition needs to be renamed  
to a .mm file;


Does the PIMPL idiom help with that? i.e. declaring a pointer to a  
(implementation-private) struct that contains all C++ members?
That´s how I trimmed down compile times a decade ago and archieved a  
huge reduction of C++ clashes in an C-only SDK based product.


 (3) I often have two container classes for some content -- one in C+ 
+ used in my libraries and one in Objective-C so I can connect it to  
the GUI (e.g., via a controller), so I need to do a little work to  
keep them consistent.


Did you try to override -setValue:forKey: and -valueForKey: and  
mapping values directly into your C++ container?


Regards,
Tom_E

___

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

2008-05-28 Thread Vijay Malhan
Yes. You can use Apple Scripting to achieve this. Another trivial method to
do this could be using Automator.app. By Automator you can create workflow's
for importing mails/calenders/addresses etc using automator-actions provided
by Mail.app and Entourage.app (They both support automator actions). You can
save the Automator workflow file on disk and use your Cocoa App to load the
workflow programatically using AMWorkFlow framework and execute it. link:
http://developer.apple.com/releasenotes/AppleApplications/RN-Automator/index.html
This will allow you to achieve what you want to do with minimal Cocoa-Obj
C/Apple Scripting code.

Hope this helps.

- Vijay


On Wed, May 28, 2008 at 5:08 PM, <[EMAIL PROTECTED]> wrote:

> Hi,
>
>   I've build an email application,which doesn't using any email
> clients.In this application i've to extract emails and email addresses
> from other email clients(example mail.app,entourage etc).Which method
> can i use for it?I searched this topic,then i got some topics related
> to apple script.Is it right way to solve this problem?Or any other way
> in cocoa?How can i import mailboxes to my email application?Hope
> anybody can help me.
>
> 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/vijay.malhan%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]


email

2008-05-28 Thread vinitha
Hi,

   I've build an email application,which doesn't using any email
clients.In this application i've to extract emails and email addresses
from other email clients(example mail.app,entourage etc).Which method
can i use for it?I searched this topic,then i got some topics related
to apple script.Is it right way to solve this problem?Or any other way
in cocoa?How can i import mailboxes to my email application?Hope
anybody can help me.

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: NSImage display quality and zooming

2008-05-28 Thread Michael Vannorsdel
Could you give more detail on what you're ultimately trying to and  
more on the problems you're seeing in the results?



On May 27, 2008, at 8:13 PM, also wrote:


I had noticed this flag, but it did not solve the problem.  I think
this must only effect scaling when the receiving view is resized such
as resizing a window.  The docs are a bit vague.


___

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: Time management

2008-05-28 Thread I. Savant
hi,I wish to realise time management in my program including  
functionalities
of measuring time interval between events and all other events that  
occured

during that event.
plz help.


  Help you with what? Read this:

http://catb.org/~esr/faqs/smart-questions.html

--
I.S.


___

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]


Time management

2008-05-28 Thread nishant jain
hi,I wish to realise time management in my program including functionalities
of measuring time interval between events and all other events that occured
during that event.


plz help.

thanks

Nishant
___

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]


NSFileHandle, performance of socket writing

2008-05-28 Thread Doo-Hyun Jang
I make file transfer part that will be used IM.
but, it's speed was slow, the speed of transfer was measured about
20~30KByte in local network.

I had profiling with shark.

- 24.9% mach_kernel ml_set_interrupts_enabled
  ...
  ...
   - 15.9% mach_kernel find_user_regs
  ...
more detail :
http://farm3.static.flickr.com/2381/2529757286_4ac962eb79_o.png


file transfer part is simple, like this

NSFileHandle *mSocketHandle;
...
[mSocketHandle writeData:[aPacket data]];
...

why it's so slow?

is it osx's system problem?

what can I do for speed-up?

thanks
( sorry about poor my english )

-- 
Doo-Hyun Jang
[Blog]
Old : http://lum7671.egloos.com
New : http://lum7671.blogspot.com
___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: Cover Flow in Cocoa?

2008-05-28 Thread Steve Harrison

Hello,

Here are several things that might be of help...

As stated by Nick Zitzmann, Apple has a sample Cover Flow-style  
application called "CovertFlow", which is located at "/Developer/ 
Examples/Quartz/Core Animation/CovertFlow/".


On another thread on the Apple Mailing Lists, Alexander Cohen said  
that there is an API in Leopard for CoverFlow (see archived post here:  
"http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192424";):



The name of the class is IKImageFlowView and it's in ImageKit. The API
is very similar to the other image kit classes. The dataSource and
delegates are almost the same. I have a working app that uses the
class and it's really nice ( Its not a shipping app, just test
purposes ). Very easy to set up.


There is also a tutorial on adding a Cover Flow view & Quick Look  
effects to a photo application at MacResearch: "http://macresearch.org/cocoa-tutorial-image-kit-cover-flow-and-quicklook-doing-things-we-shouldnt-are-too-fun-resist 
".


Quill
___

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]


Storing miscellaneous singleton data in CoreData app?

2008-05-28 Thread Rick Mann
I have a little CoreData app that seems to work as I want it to. I  
have a list in my UI and I can add and remove items to it, and a  
customized detail view that displays the data for the currently- 
selected item.


I also want to display some data in the detail view that is global to  
the document. What's the best/easiest way to add that information to  
my document and make it available to a text field via bindings? Do I  
need to create additional CoreData schema? The thing is, there should  
only ever be one of this global data, not many rows in a table.


TIA,
--
Rick

___

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

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

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

This email sent to [EMAIL PROTECTED]


Re: NSImage display quality and zooming

2008-05-28 Thread Dmitri Goutnik


On May 28, 2008, at 4:37 AM, also wrote:


I've created a custom NSView that displays an image and allows the
user to zoom in and out.  The view works in general, but the quality
of the image displayed is not what I expect.  When I zoom in even
slightly on a high resolution image (300 dpi, 500x500) the image is
grainy and pixelated.  If I do the same in Preview the quality is much
better.




Not sure about zooming in, but for zooming out adjusting image  
interpolation mode produces somewhat better looking results:


[context setImageInterpolation:NSImageInterpolationHigh];

- Dmitri

___

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]