Has anyone used the VOIP background mode for a non-VOIP app?

2011-05-17 Thread Chris Markle
run in the background enough to be able to send and receive SSH-level keepalives so that I can keep an SSH session open, given that it's costly to setup in the first place (imho). Thanks in advance... Chris ___ Cocoa-dev mailing list (Cocoa-dev

Re: Has anyone used the VOIP background mode for a non-VOIP app?

2011-05-17 Thread Chris Markle
ple. For a small fee I could keep their secret ;) 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/U

Re: problem bringing up print dialog for epson printer in 64-bit mode

2011-05-23 Thread Chris Kane
u have any control over CERPCFBundle or influence with the owners of that, find out why they are throwing NSErrors as exceptions. Chris Kane Cocoa Framework, Apple On May 21, 2011, at 12:34 PM, Ken Victor wrote: > nick, > thanx for the reply. > > here is a copy of the top portion of t

encoding of file names

2011-05-23 Thread Chris Idou
If I take a string from an NSTextField with an accented character: café and I make this into a file name and write a file, then I read that file name back in (using NSFileManager contentsOfDirectoryAtPath), then the string read back in, still looks the same: an accented café, but the strings d

Re: A Return NSString Problem

2011-05-29 Thread Chris Hanson
follow the conventions of some other language or platform in tour coding, rather than Objective-C and Cocoa's own conventions. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: How to extract files from zip archive?

2011-05-30 Thread Chris Hanson
guments, that's the array that will be copied (via the execve(2) or posix_spawn(2) functions) over to the other program's main() function. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Chris Ridd
And instructions on getting *just* that class from the above: <http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml> Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: ObjC stdin equivalent? and other questions

2011-06-10 Thread Chris Hanson
On Jun 10, 2011, at 7:56 PM, William Squires wrote: > Hi! > 1st question: In the future, please just start a separate thread for separate questions. Thanks! -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Making NSCache evict only unreferenced objects

2011-06-17 Thread Chris Hanson
> objects are unique, i.e. there is never more than one value object for a > particular primary key. Rather than reinventing all of this yourself, you should just use Core Data. It provides both the uniquing and the database call minimization you're looking for, and a lot else

Bindings don't work with cut and paste

2011-06-19 Thread Chris Idou
I have a NSTextView's value bound to an object. I do not have "Continuous update" turned on. The binding works when I type into the field and exit the field. However if I *paste* text into the field, then exit the field, the binding set: method is never called. What am I missing?

Re: Synthesised properties and additional actions

2011-06-22 Thread Chris Parker
r can help in writing thread-safe accessors as well. .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/Uns

network volume names changing etc.

2011-06-26 Thread Chris Idou
I've noticed that Mac OS sometimes silently changes the UNIX mount name of network volumes. For example, if I mount a network volume of Media, it would normally be /Volumes/Media, but sometimes it isn't. For example, if another user on the same machine mounts Media first, then you might end up

Re: getting last accessed date

2011-07-08 Thread Chris Ridd
n Finder. > So the question is how do I get that besides using the spotlight metadata? Does the resource fork (where the icon lives) have a different set of timestamps from the data fork? Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Chris Ridd
be wrong? Thanks! The man page for "isinf" says you will need to #include and link with -lm. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

Re: Dismissing a Popover Internally

2011-07-20 Thread Chris Parker
the chain, This is what's recommended. > or at least put it into in the root view. In the latter case you can get > the root view with [self. navigationController.viewControllers > objectAtIndex:0]. Any better way that I’m missing? No

Why am I getting May Not Respond warnings for Super

2011-07-21 Thread Chris Tracewell
I have a private framework that is included in a project. Many of the project classes descend from a class in the framework. All of these descendent classes implement copyWithZone, encodeWithCoder and initWithCoder and thus respectively calls each on super. I get warnings stating that "MySuperCl

Re: Why am I getting May Not Respond warnings for Super

2011-07-21 Thread Chris Tracewell
On Jul 21, 2011, at 9:33 AM, Nick Zitzmann wrote: > > On Jul 21, 2011, at 9:51 AM, Chris Tracewell wrote: > >> I have a private framework that is included in a project. Many of the >> project classes descend from a class in the framework. All of these >> d

Filter an array

2011-07-28 Thread Chris Paveglio
this kind of filter? Is there any other way, aside from "doing it the long long way", i.e. enumerating over each's item's pathExtension in array1 through each file extension in array2? Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev

Re: Filter an array

2011-07-29 Thread Chris Paveglio
r not. Thanks for the suggestions for all the options here. I might also check into the UTI's in case users don't have a file extension. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Apache Module

2009-11-27 Thread Chris Hanson
ind of use: Maintaining a pool of CGI-style servers that use Apache to provide an HTTP front-end without the overhead of one fork/exec per HTTP connection. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Chris Hanson
On Nov 29, 2009, at 5:47 PM, Sandro Noël wrote: I have to agree with you here, NSDocument should be just M in the MVC Pattern, but why is XCode evidently binding it as the C also in the template project. Because not every project needs to be picture perfect in its use of various design

Re: Download Alert -- Quarantine information removal

2009-12-02 Thread Chris Hanson
You shouldn't need to write an "installer" in the first place. Mac OS X comes with its own standard installation system. If your application is simple, it should be drag-installed; otherwise, it should use a Mac OS X installer package. -- Chris On Dec 1, 2009, at 7:55 AM

Re: Use of preprocessor macros

2009-12-02 Thread Chris Hanson
used. You can tell a setting is overridden because it's in bold rather than plain text. -- Chris On Dec 1, 2009, at 5:35 PM, Graham Cox wrote: I'd set this in the (Project) > Get Info > Build settings, not (Target) > Get Info > Build settings. Putting it in t

Re: Is it possible to pass an object to a NIB

2009-12-04 Thread Chris Hanson
yourself by hand. All you should need to do is instantiate your window controller, invoke its -window method to force it to load its associated nib file, and then check that its outlets are wired up as you expect. — Chris ___ Cocoa-dev mailing li

Re: Is it possible to pass an object to a NIB

2009-12-05 Thread Chris Hanson
ithZone @@NibPath, context, > NSApp.zone > > objects = context['NSTopLevelObjects'] > view = objects.find { |obj| obj.class == object_type } I think you’re doing too much work here. You should use an IBOutlet in File’s Owner to

Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key

2009-12-12 Thread Chris Parker
tement needs to be called out better somehow? Another bug for the error not being useful would be great. You're not the first person to trip over this. Thanks! .chris On 11 Dec 2009, at 11:10 PM, Jerry Krinock wrote: > Sorry for the wonky subject. It's easier to explain in

Re: Core Data Conundrum

2009-12-12 Thread Chris Hanson
} @end You may also be able to implement allSegments as a fetched property, leaving its implementation up to Core Data. It still wouldn’t be a property you could use in your own fetch requests though. — Chris ___ Cocoa-dev mailing list

NSSpellChecker language guessing doesn't work

2009-12-14 Thread Chris Idou
I'm trying to use guessesForWordRange:inString:language:inSpellDocumentWithTag: and have it use automatic language guessing, but it doesn't seem to work. At first I was just passing a word, and despite it being in Russian letters, I figured it didn't have enough context to guess. So I passed

NSAttributedString fill with gradient

2009-12-17 Thread Chris Purcell
I've tried setting the gradient as NSForegroundColorAttributeName in the attributes dictionary when creating the string but as I expected that didn't work. How would I go about filling the string with a gradient? Thanks! --Chris ___

Re: NSRecursiveLock problems

2009-12-22 Thread Chris Backas
e to come up with an alternative way to architect this - we had to do all our string measuring on the main thread. (We were actually getting occasional crashes from doing this on a secondary thread, maybe once every 30K strings or so) Hope that helps some, Chris Backas On Dec 22, 2009, at

Re: Need font anti aliasing techniques

2010-01-04 Thread Chris Hanson
rmally, just using NSTextField should achieve appropriate antialiasing. — 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-adm

Re: GC memory leak - what is it?

2010-01-04 Thread Chris Hanson
_allocateClassPair) needs to use these if they want their classes to work under GC. — 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

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
ient. > > NSDate is *not* a good choice for these sorts of comparisons, because it's > always a date and a time, and it's not as simple as it seems. Consider this > (unlikely) example: However Core Data models "dates" using NSDate. If you needed to mode

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
On 5 Jan 2010, at 19:41, Nick Zitzmann wrote: > > On Jan 5, 2010, at 12:23 PM, Chris Ridd wrote: > >> However Core Data models "dates" using NSDate. If you needed to model dates >> without times in Core Data (and be able to sort/filter on them) what would >

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
On 5 Jan 2010, at 20:56, Sean McBride wrote: > On 1/5/10 7:23 PM, Chris Ridd said: > >> However Core Data models "dates" using NSDate. If you needed to model >> dates without times in Core Data (and be able to sort/filter on them) >> what would you do? &

Re: iPhone: validate a NSString for US zipcode

2010-01-07 Thread Chris Williams
As someone who lives in a zip code that was added in 2004, yet STILL shows up as invalid in countless databases, I can't stress this point enough. Do not maintain data yourself that someone else has a reason/motivation and the resources to maintain. Just send it to the service, and catch the f

Re: if statement causing 32 Byte leak?

2010-01-10 Thread Chris Parker
is also a good resource. You can also write your own dtrace scripts to track messages to retain/release/autorelease to your own objects and that can help filter down the noise to only those objects of the class which are causing you problems. .chris -- Chris Parker iPhone Frameworks Apple

Confused about setting selection in NSBrowser

2010-01-14 Thread Chris Idou
I'm trying to set the selected item in an NSBrowser. I don't want to use setPath: because the items I'm storing in the browser are not unique, so therefore paths are not unique. I'm trying to use setIndexPath: but when I try the program throws an exception: HIToolbox: ignoring exception 'setS

Re: Time to drop PowerPC support?

2010-01-14 Thread Chris Idou
>Another factor to consider is that you will need to maintain PowerPC >hardware to test on. > >--Kyle Sluder I had a 50,000 line Cocoa program, and I thought about restricting it to Intel for that reason, but then I thought heck, I'll build it universal and throw it out there. Not a single bu

Re: Confused about setting selection in NSBrowser

2010-01-16 Thread Chris Idou
Yes, I'm doing 10.6. But I don't see anything about "item based" in NSBrowser.h, nor anything else that looks enlightening. From: Corbin Dunn To: Keary Suska Cc: Chris Idou ; cocoa-dev@lists.apple.com Sent: Sat, 16 January, 2010 3:

Re: Make sheets open instantly

2010-01-18 Thread Chris Hanson
On Jan 18, 2010, at 2:43 PM, David Catmull wrote: > Is there any way to make sheets open instantly, instead of animating? I'd > just like to speed up my unit tests. Why do your unit tests need to bring up sheets? — Chris ___ Cocoa-

FSEventStreamCreate and File System Events Wierdness

2010-01-29 Thread Chris Idou
I'm trying to use the file system events api, but what I'm seeing seems wierd. Firstly, the documentation as I read it says you can store the last event id, and pass that to FSEventStreamCreate next time to carry on where you left off. However what I'm seeing if I do that, is it immediately re

Re: FSEventStreamCreate and File System Events Wierdness

2010-01-29 Thread Chris Idou
Firstly, I don't think that actually makes sense, given the whole point of the lastEventId. Secondly, it only does it for the first folder you pass in, so it isn't even consistent. But yes I guess one could compare and ignore. From: Graham Cox

Re: FSEventStreamCreate and File System Events Wierdness

2010-01-29 Thread Chris Idou
No, I'm not using FSEventStreamCreateRelativeToDevice, I'm using FSEventStreamCreate. What you quote is only relevant to FSEventStreamCreateRelativeToDevice. From: Graham Cox To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 29 January,

SetFrontProcessWithOptions and NSPanel

2010-01-31 Thread Chris Idou
I've got a NSPanel HUD that I need to be able to pop up above other applications, but I need to pop only the HUD, and not other windows in my application. So naturally I'm using: SetFrontProcessWithOptions(&psn, kSetFrontProcessFrontWindowOnly); However, it still pops up all my windows, and

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Chris Hanson
may also be some classes that don’t support NSCoding at all that can be referenced by a nib file, such as Cocoa’s NSWindow class. That’s why you don’t load nib files using NSKeyedUnarchiver, but instead by using one of the methods on NSBundle (or for Cocoa, N

Re: Validating unique objects in CoreData

2010-02-14 Thread Chris Hanson
hod to obtain permanent IDs can fail and return an error. Obtaining permanent IDs for objects requires a transaction, because in non-atomic persistent stores (e.g. the SQLite persistent store) you may have multiple requests happening at a single time aga

Re: Validating unique objects in CoreData

2010-02-14 Thread Chris Hanson
tion I would have is to try splitting them off into their own entity, and measure performance of performing queries directly against that entity. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

NSPredicate Binding Problem

2010-02-16 Thread Chris Tracewell
In a window displaying a "widget" object I am using an outlineview bound to an NSTreeController as master view. When I notice the OV selection change via outlineViewSelectionDidChange I filter a tableview bound to an NSArrayController in one of two ways like so... Method 1 :: use setFilterP

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-24 Thread Chris Williams
This can be quite a religious argument, but speaking from experience of code that's been rigorously hacked time and again, the only effective way to disable parts of your code is to not have that code in the executable. E.G. a compile a demo version, and a real licensed version. Having code ex

Correct way to overide synthesized setter?

2010-02-28 Thread Chris Tracewell
I have two synthesized properties - A and B. Whenever A changes I need B to be updated to A.keypath. Is the correct way to do this to override the synthesized setter of A like so? -(void)setA:(id)value { A = value [self setB:A.keypath]; } Thanks. _

Re: Correct way to overide synthesized setter?

2010-02-28 Thread Chris Tracewell
On Feb 28, 2010, at 9:28 AM, Jean-Daniel Dupas wrote: Le 28 févr. 2010 à 17:23, Chris Tracewell a écrit : I have two synthesized properties - A and B. Whenever A changes I need B to be updated to A.keypath. Is the correct way to do this to override the synthesized setter of A like so

Re: Correct way to overide synthesized setter?

2010-02-28 Thread Chris Tracewell
On Feb 28, 2010, at 9:26 AM, Jens Alfke wrote: On Feb 28, 2010, at 8:23 AM, Chris Tracewell wrote: I have two synthesized properties - A and B. Whenever A changes I need B to be updated to A.keypath. If B's value is entirely dependent upon A, you don't even need to synthesiz

Re: Where in the MVC should my code go?

2010-02-28 Thread Chris Hanson
ivalent NSURL instance. — 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 y

Re: Custom View in Toolbar

2010-03-05 Thread Chris Hanson
struments, you can use “Build & Analyze” to run the clang static analyzer against your code. Among other checks, the static analyzer understands and can validate Cocoa memory management and catch both over-releases and leaks. — Chris ___ Cocoa-dev

NSURLRequest- setHTTPMethod to REPORT

2009-05-29 Thread Chris Purcell
quest, the server returns an error, because there is an extra / in the request line: Bad request line: REPORT bernard/work/ / HTTP/1.1 Am I doing this the wrong way or is this not possible? Thanks, --Chris ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Getting localized /Users/Shared Dir Name

2009-05-29 Thread Chris Parker
nager componentsToDisplayForPath:]. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html .chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Several Questions

2009-05-30 Thread Chris Hanson
n services. -- Chris On May 30, 2009, at 5:57 PM, Ammar Ibrahim wrote: On Sun, May 31, 2009 at 3:27 AM, Kyle Sluder wrote: On Sat, May 30, 2009 at 5:20 PM, Ammar Ibrahim > wrote: 1- How do you ensure only one instance of your app is running? How do you detect if it stops respon

Re: Several Questions

2009-05-31 Thread Chris Hanson
On May 30, 2009, at 11:18 PM, Ammar Ibrahim wrote: On Sun, May 31, 2009 at 6:16 AM, Chris Hanson wrote: The best way to ensure your daemon or agent is always running is to have it run via launchd. Start by reading the launchd man page and the "Daemons and Agents" tech note;

orderFrontStandardAboutPanel problem on Tiger - [NSCFDictionary setObject:forKey:]: attempt to insert nil value

2009-06-01 Thread Chris Jones
e", img, @"ApplicationIcon", @"Copyright notice", @"Copyright", @"App Version", @"ApplicationVersion", nil]; [[NSApplication sharedApplication] orderFrontStandardAboutPanelWithOptions:options]; } And done a lot of googling. My other thoug

Re: NSFileManager's copyItemAtPath:toPath:error: syslogging every directory it finds?

2009-06-01 Thread Chris Parker
th:toPath:error: but does anyone know why I'd be getting that logged? Very confusing. This is a known bug and has been fixed in a future release of the operating system. .chris -- Chris Parker Apple Inc. ___ Cocoa-dev mailing list (Cocoa-dev

Re: "Leaks" utility

2009-06-12 Thread Chris Suter
yone who uses this utility tell me how to set the this environment > variable? I'm thinking it's possible this must be set via GDB, otherwise I'm > not sure where it could get a stack trace from. Thank you for helping. It's easier if you use MallocDebug or Instruments. Re

Correct MVC code placement

2009-06-14 Thread Chris Tracewell
I have many occasions when a model's property needs to be transformed to another type for use in a view. In this case I have a string of pipe separated values that need to be transformed into a NSMutableArray, manipulated in the interface and then converted back to the pipe separated string

Re: Correct MVC code placement

2009-06-14 Thread Chris Tracewell
Thanks Kyle, I should've noted this is a non-document based app. That said, I think your suggestion would imply to let the controller to expose its own array property of the model's pipe-separated property? Chris On Jun 14, 2009, at 11:27 AM, Kyle Sluder wrote: NSDocument is wh

Re: Correct MVC code placement

2009-06-14 Thread Chris Tracewell
s not the natural/logical format for cocoa use, and should be a part of the model. Chris On Jun 14, 2009, at 3:08 PM, Ken Thomases wrote: I think what Kyle meant is that your model is the values between the pipe separators. The pipe-separated string format is part of your file forma

Enter Key Behavior in NSTableView

2009-06-17 Thread Chris Tracewell
I have a subclass of NSTableView which I have implemented keyDown to pick up delete and enter key presses. When the TV is bound to an array controller it works perfectly, I can detect keyDowns for the above mentioned and as a bonus when the user presses "Enter" or "Return" the field editor

Re: Enter Key Behavior in NSTableView

2009-06-18 Thread Chris Tracewell
t that was catching the insertNewLine: selector for every control in the view when I only intended it for some textFields. Thanks for the help - it is working now. Chris On Jun 18, 2009, at 5:22 PM, Raleigh Ledet wrote: I don't think this is normal. When a field editor is up, the Ret

Re: Just implementing -isEqual:, never invoked, causes crash

2009-06-19 Thread Chris Parker
nabled", "YES", 1) ; setenv("NSAutoreleaseFreedObjectCheckEnabled", "YES", 1) ; #endif That should do the job, right? You're too late. The code which sets up zombies fires before main() - you'll need to set this in the envi

Re: Approaches for this Matching Problem?

2009-06-22 Thread Chris Suter
;t really have the concept of words. Regards, 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/Unsub

Re: How to fill rectangle under vertical scroller?

2009-06-22 Thread Chris Suter
view draws above and/or after the scroll view, > or else it may get painted over. Subviews are always drawn after the parent (for obvious reasons if you think about it), so if I correctly understand the point you're trying to make, there won't be a problem. Regards, Chris

Re: Approaches for this Matching Problem?

2009-06-22 Thread Chris Suter
WWDC (so bear in mind, it's second hand). The Wikipedia article regarding words is an interesting read. Kind regards, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Chris Idou
I've written a reasonably non-trivial app using GC and using a fairly wide range of APIs. I've found several GC bugs in the Apple frameworks, which naturally enough are pretty annoying (as all memory problems are), but I don't think the annoyance is still anywhere near that of having to write

Confusion about NIB loading

2009-06-24 Thread Chris Idou
I'm trying to load a NIB from my application that exists in a subframework. Since the doco for loadNibNamed:owner: says that it looks in the bundle "associated" with the owner, I'm creating an object of a class that exists in the subframework to pass as the owner. However, it doesn't find the

Re: display Mac id

2009-06-24 Thread Chris Ridd
/* Only look at ethernet addresses */ if (e->sdl_alen == ETHER_ADDR_LEN) { unsigned char *a = LLADDR(e); printf("%.2X%.2X%.2X%.2X%.2X%.2X\n", a[0], a[1], a[2], a[3], a[4], a[5]); } } }

Re: GC pros and cons

2009-06-24 Thread Chris Idou
On Jun 24, 2009, at 09:14, Philip Aker wrote: > Like Gwynne, I'm comfortable with the traditional "reap what you sow" > philosophy. This has benefits in that the basic policy spills over into > other areas of programming and gradually, one >learns as a matter of habit, to account for things

Re: Confusion about NIB loading

2009-06-24 Thread Chris Idou
On 24/06/2009, at 11:20 PM, Chris Idou wrote: >> Since the doco for loadNibNamed:owner: says that it looks in the bundle >> "associated" >> with the owner, I'm creating an object of a class that exists in the >> subframework to pass as the owner. >&g

Re: GC pros and cons

2009-06-24 Thread Chris Idou
On Jun 24, 2009, at 18:19, Jeff Laing wrote: > we regularly cache hundreds of thousands of objects from a persistent > (relational) store and it is absolutely critical to us that the instant that > those objects aren't required, they give their > memory back - that's how we can run in a machine

Re: GC pros and cons

2009-06-25 Thread Chris Idou
From: Bill Bumgarner .. Bill I don't know if this was discussed before, but could you discuss the lack of GC on the iPhone? Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how: http://au.mobile.yahoo.com/mail

Re: GC pros and cons

2009-06-25 Thread Chris Idou
, Chris Idou wrote: > Bill I don't know if this was discussed before, but could you discuss the > lack of GC on the iPhone? I suspect it is for performance reasons. The Objective-C garbage collector is designed to run in a separate thread on the Mac, which means it can run on i

Re: GC pros and cons

2009-06-25 Thread Chris Idou
.of course, the iPhone does not have virtual memory, so its not an issue there. From: Adam R. Maxwell To: cocoa-dev Dev Sent: Friday, 26 June, 2009 1:32:51 PM Subject: Re: GC pros and cons On Jun 25, 2009, at 8:19 PM, Chris Idou wrote: > I still use XCode in

Re: GC pros and cons

2009-06-25 Thread Chris Idou
From: James Gregurich > I have read up on GC, and I don't like the idea of introducing > non-deterministic behavior into my code base. I would question the assertion that GC introduces non-deterministic behavior, unless you consider the time it takes for p

Re: Detecting that a process has ended?

2009-06-27 Thread Chris Suter
ver the service that you're launching? Is it your own code? If so, there are other IPC mechanisms you could use. Regards, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Detecting that a process has ended?

2009-06-27 Thread Chris Suter
one. Still, if it's your own code, it's sometimes easier to use an IPC mechanism which was what I was trying to say. Regards, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: GC pros and cons

2009-06-28 Thread Chris Idou
From: James Gregurich > 3) I don't allow exceptions of any kind to propagate into alien > codeparticularly the cocoa runtime. Given that Objective-C doesn't have declared exceptions (like Java), it seems more likely that you "hope" exceptions are not

Synchronization across plug-ins loaded by different processes

2009-06-28 Thread Chris Arnaiz
Hi, I'm new to Mac programming (and software engineering in general), so I apologize in advance if my terminology is wrong. I'm currently developing a plug-in (a Print Dialog Extension to be exact) and wanted to make sure only one instance of the plug-in is allowed to be in "editing mode" f

NSBitMapRepresentation --> JPEG compression?

2009-06-29 Thread Chris Tracewell
--- Using GC --- I am saving images to file from an NSImage dropped into an NSImageView using JPEG as the file format via the code below. -(IBAction)saveImages:(id)sender { TKProduct *theProduct = [[myProductArrayController selectedObjects] objectAtIndex:0]; NSBitmapImageRep *th

Re: NSBitMapRepresentation --> JPEG compression?

2009-06-30 Thread Chris Tracewell
wrote: On Jun 29, 2009, at 4:12 PM, Chris Tracewell wrote: The issue is that when using writeToFile my images have an extra 3 to 10 KB of size whether the image is really small or really big - ie 5KB or 300KB. I am suspecting that my XCode generated images are bigger for one of two reasons.

Re: NSBitMapRepresentation --> JPEG compression?

2009-06-30 Thread Chris Tracewell
Steven, Thanks for the link very nice info. Rob, Thanks - that is a huge help to get going with file meta data manipulation! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

How Do I Statically Link to libcurl?

2009-06-30 Thread Chris Tracewell
some path where libcurl can be found ... which is??? 3) import the or into my controller class - (seems straight forward) I have tried a bizillion combos of the above with enough revisions to make me sick. Any help is much appreciated. Thanks Chris

Re: How Do I Statically Link to libcurl?

2009-06-30 Thread Chris Tracewell
whether I dynamically link or statically link, is there a manual anywhere that describes how to do this in XCode? Thanks Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: How Do I Statically Link to libcurl?

2009-07-01 Thread Chris Tracewell
On Jun 30, 2009, at 8:55 PM, Nick Zitzmann wrote: On Jun 30, 2009, at 9:49 PM, Chris Tracewell wrote: Finally, just to be sure to be sure to steer things back to my original question... whether I dynamically link or statically link, is there a manual anywhere that describes how to do this

Re: How Do I Statically Link to libcurl?

2009-07-01 Thread Chris Tracewell
e project to compile without errors. However I am stck with implementation details... I'll start a new thread for that. Thanks Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

libcurl -- how to write a callback?

2009-07-01 Thread Chris Tracewell
I've gotten libcurl linked and ready to use thanks to many contributors from a previous post here. Does anyone have a snippet code or link of an example of writing a callback function for say CURLOPT_READFUNCTION? Thank you Chris ___

Re: libcurl -- how to write a callback?

2009-07-01 Thread Chris Tracewell
Chris Tracewell wrote: I've gotten libcurl linked and ready to use thanks to many contributors from a previous post here. Does anyone have a snippet code or link of an example of writing a callback function for say CURLOPT_READFUNCTION? What have you tried? For example, I found a numb

Re: libcurl -- how to write a callback?

2009-07-01 Thread Chris Tracewell
On Jul 1, 2009, at 3:21 PM, Geoff Beier wrote: On Wed, Jul 1, 2009 at 5:42 PM, Chris Tracewell wrote: I've gotten libcurl linked and ready to use thanks to many contributors from a previous post here. Does anyone have a snippet code or link of an example of writing a callback fun

NSTableView bug?

2009-07-02 Thread Chris Carson
data begins to shift by a pixel per row, until it eventually is superimposed on the row above it. This seems like a bug with the NSTableView class, but perhaps I'm doing something wrong. Has anyone else run into this problem? Chris ___

Re: Dynamically loading a part of a Window in Cocoa

2009-07-02 Thread Chris Hanson
code to specify a binding, or a target-action connection, in your application or framework’s unit tests. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: Convenience initialisers

2009-07-05 Thread Chris Hanson
guages do. In Objective-C, all method dispatch is dynamic, even to classes, and is subject to override. -- Chris On Jul 5, 2009, at 10:47 AM, Dimitri Bouniol wrote: You can't tell 'self' to be allocated. ___ Cocoa-dev mailing lis

Re: CoreData deleteAll of kind

2009-07-06 Thread Chris Hanson
nstance of the entity and delete them one at a time. -- 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

Re: Clarification on accessors? (was: Yet another memory management question)

2009-07-08 Thread Chris Parker
Because you have no idea what subclassers may do in their overrides of the accessors (e.g. The subclassed accessor may rely on state that's been torn down earlier in -dealloc). It's just not safe, unless you can guarantee that you own the entire inheritance chain. .chris On J

<    1   2   3   4   5   6   7   8   9   10   >