On 27 Jun 2009, at 01:27, James Gregurich wrote:
GC isn't nirvana. it does have its perils and issues, and you have
to be aware of them and code around them. You can't just turn it on
and some how everything magically works. There is no perfect
solution to memory management. I prefer a s
rajesh kumar swarnkar wants you to join Yaari!
Is rajesh your friend?
http://yaari.com/?controller=user&action=mailregister&friend=1&sign=YaariTJS786PDQ916UUQ447OKZ947";>Yes,
rajesh is my friend! http://yaari.com/?controller=user&action=mailregister&friend=0&sign=YaariTJS786PDQ916UUQ447OKZ947";>
I'm starting a process via NSTask and launchctl. I can use launchctl
list to get the process' PID. Is there a way i can get notified if the
process exits (or dies) without polling launchctl list?
TIA,
Rick
___
Cocoa-dev mailing list (Cocoa-dev@lis
On Jun 27, 2009, at 4:11 AM, Rick Mann wrote:
I'm starting a process via NSTask and launchctl. I can use launchctl
list to get the process' PID. Is there a way i can get notified if
the process exits (or dies) without polling launchctl list?
http://developer.apple.com/technotes/tn/tn2050.ht
On Jun 27, 2009, at 02:11:13, Rick Mann wrote:
I'm starting a process via NSTask and launchctl. I can use launchctl
list to get the process' PID. Is there a way i can get notified if
the process exits (or dies) without polling launchctl list?
I just discovered this technote:
http://develo
Hi Rick,
On Sat, Jun 27, 2009 at 7:22 PM, Ken Thomases wrote:
> On Jun 27, 2009, at 4:11 AM, Rick Mann wrote:
>
>> I'm starting a process via NSTask and launchctl. I can use launchctl list
>> to get the process' PID. Is there a way i can get notified if the process
>> exits (or dies) without polli
On Jun 27, 2009, at 02:27:14, Chris Suter wrote:
Hi Rick,
On Sat, Jun 27, 2009 at 7:22 PM, Ken Thomases
wrote:
On Jun 27, 2009, at 4:11 AM, Rick Mann wrote:
I'm starting a process via NSTask and launchctl. I can use
launchctl list
to get the process' PID. Is there a way i can get notifie
On Jun 27, 2009, at 5:11 AM, Graham Cox wrote:
I don't really get why the memory management/ownership rules seem to
be so hard for so many people. But I accept that they are, to some.
If they are, maybe GC is a godsend to those folk, but for everyone
else, I just can't see the big deal.
I
On 27 Jun 2009, at 14:04, Klaus Backert wrote:
On 27. Jun 2009, at 09:54, Thomas Davie wrote:
On 27 Jun 2009, at 01:27, James Gregurich wrote:
GC isn't nirvana. it does have its perils and issues, and you
have to be aware of them and code around them. You can't just turn
it on and som
To create an NSUrl from a file which would be the preferred way
NSString *myFile = @"myFile.xml";
Method A:
NSUrl *myUrl = [NSUrl fileURLWithPath:myFile]
Method B:
NSUrl *myURL = [[NSUrl alloc] initFileURLWithPath:myFile];
Using method B I would need to release my object at some point (this is
Hi Rick,
On 27/06/2009, at 7:29 PM, Rick Mann wrote:
I think it'll work very well. It's not a GUI process (although most
of the techniques in the TN support only processes in the current
context). In this case, the kqueues will do just fine.
Ah, sorry, I missed that one. Still, i
No. Read the memory management guide.
On 27 Jun 2009, at 13:24, M.S. Hrishikesh wrote:
To create an NSUrl from a file which would be the preferred way
NSString *myFile = @"myFile.xml";
Method A:
NSUrl *myUrl = [NSUrl fileURLWithPath:myFile]
Method B:
NSUrl *myURL = [[NSUrl alloc] initFileURL
On Jun 27, 2009, at 7:24 AM, M.S. Hrishikesh wrote:
To create an NSUrl from a file which would be the preferred way
NSString *myFile = @"myFile.xml";
Method A:
NSUrl *myUrl = [NSUrl fileURLWithPath:myFile]
Method B:
NSUrl *myURL = [[NSUrl alloc] initFileURLWithPath:myFile];
Using method B I
On 27. Jun 2009, at 14:17, Thomas Davie wrote:
Now I'm confused, because other people said, GC frees objects
*when* nothing depends on them any more *or* at some point later in
time. By the way, it would be different, if you said "if" instead
of "when", but then, I think, you would have n
On 27/06/2009, at 8:58 PM, WT wrote:
I don't think they are hard to understand, or even apply, at all. I
just extrapolated - and, admittedly, did so without having the
benefit of experience - that on very large problems, they would
almost always cause a maintenance nightmare. Your 500+-cla
On Sat, Jun 27, 2009 at 8:17 AM, Thomas Davie wrote:
> If you're worried about running
> out of space because the collector is lazy, then all you need to know is
> that as soon as you get to the "oh shit, no memory" stage, the collector
> runs and frees some more up (unless there really is none to
On Jun 26, 2009, at 2:25 PM, Frederick C. Lee wrote:
Environment: iPhone OS 3.0
Greetings:
I would like to place one or more reference icons (png) upon a
host image (png) {Like a street map with legends, landmarks, etc.}.
I'm working with Quartz so I'm using pre-loaded CGImages via
UII
On Jun 27, 2009, at 9:22 AM, WT wrote:
I'm curious now... Is that an "in principle" statement, or has it
happened to a project that you know of? If the latter, can you
elaborate a little on the nature of the project, as in what it was
about it that outran the gc?
This is well covered in th
There has been enough signal in this thread that I haven't asked for
it to be ended, but it is rapidly spiraling the bowl. Specifically,
the last dozen or so messages -- mine included -- have been a rehash
of the same points. "I like GC" / "I don't like GC" / "GC is non-
deterministic" / "
On Jun 27, 2009, at 4:09 PM, Michael Ash wrote:
It's *hard* to outrun it and run out of memory, but
it can be done.
I'm curious now... Is that an "in principle" statement, or has it
happened to a project that you know of? If the latter, can you
elaborate a little on the nature of the proje
1) I have convenience macros that @catch and throw NSExceptions for
the legacy 32 bit environment. I don't allow legacy objc exceptions to
propagate out of code blocks.
2) I don't use @synchronize. I use boost::thread::mutex so that I have
one consistent, standard locking API throughout
Hi all,
I have a problem with a nsservice provider. The problem is that I
correctly call the service using NSServiceProvider without errors and
the service executes perfectly.
But at the time to return my Data Type, it fails. I declared a custom
data type named @"dictionaryPBoardType" but I
On Jun 27, 2009, at 05:34:45, Chris Suter wrote:
On 27/06/2009, at 7:29 PM, Rick Mann wrote:
I think it'll work very well. It's not a GUI process (although most
of the techniques in the TN support only processes in the current
context). In this case, the kqueues will do just fine.
Ah, s
Rick Mann wrote:
No worries. In answer to your earlier question, I don't control the
other code. Well, I do (it's open source), but I don't want to
change it. It's a complex Java servlet container.
A "tender" process might work. Instead of spawning the target
process directly, you spawn
Hey Kyle:
Thanks for your reply... I looks like that took a lot of time to type. ;)
>
> Ah. Please do re-read the documentation, as it will at the very least
> better inform your vocabulary. An "outlet" is a property or instance
> variable that has been tagged with the IBOutlet macro and as su
Pierce Freeman wrote:
A user logs on to a web application. They have some options for
filing a
web report. Choices: single line and multiple line. They can
choose how
many of these fields they have for various variables that they want to
input. This is then saved in a MYSQL database for l
Sent from my iPhone
On Jun 27, 2009, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote:
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, sen
Bill,
If you guys are going to some day make that statement the law, then
please keep in mind that whatever you do has to operate with cross
platform C++ code using standard memory management techniques. Many of
us have to deal with other unix systems and Windows. We need this
stuff to a
On Sat, Jun 27, 2009 at 1:57 PM, James Gregurich wrote:
>
> Bill,
>
> If you guys are going to some day make that statement the law, then please
> keep in mind that whatever you do has to operate with cross platform C++
> code using standard memory management techniques. Many of us have to deal
> w
On Jun 27, 2009, at 9:28 AM, Bill Bumgarner wrote:
- GC applications are less crash prone than non-GC applications
(yes, really -- Xcode's crash frequency has dropped significantly in
the move from non-GC to GC, for example).
One con of adopting GC on Leopard is that your app is quite likel
On Jun 27, 2009, at 4:45 PM, Jeff Johnson wrote:
One con of adopting GC on Leopard is that your app is quite likely
to spam the console log profusely, making a small but technically-
minded and vocal minority of your users very angry with you. >, dupe of , presumably never to be fixed on
Le
I'm using this method:
textView:shouldChangeTextInRange:replacementText:
to let users put special symbols into a UITextView.
I detect the Return key by checking whether the input string is equal
to @"\n". But how would I detect the back-delete key? @"\b" doesn't do
it. And I can't seem to
On Jun 27, 2009, at 6:05 PM, Nick Zitzmann wrote:
That, and 64-bit GC apps allocate a whopping 32 GB of VM on startup
on Leopard, which might scare a few people that (1) watch Activity
Monitor like a hawk, and (2) think that VM == swap. Most people
won't notice, though.
It actually isn't 3
On Jun 27, 2009, at 5:45 PM, Jeff Johnson wrote:
One con of adopting GC on Leopard is that your app is quite likely
to spam the console log profusely, making a small but technically-
minded and vocal minority of your users very angry with you. >, dupe of , presumably never to be fixed on
Leop
James Gregurich wrote:
1) I have convenience macros that @catch and throw NSExceptions for
the legacy 32 bit environment. I don't allow legacy objc exceptions
to propagate out of code blocks.
2) I don't use @synchronize. I use boost::thread::mutex so that I
have one consistent, standard l
I figured the details out and taught my staff to use the techniques.
it isn't that hard. I learned what I needed to know from the objc 2.0
manual and a little bit of trial and error.
The critical thing to watch are the exceptions since those are
incompatible in legacy mode. You just have
I have a program which needs to run under 10.4, but I used a method that
is only defined for 10.5. No biggie, it was easy enough to replace it
with something that works for 10.4. The problem is that I didn't find
this out until I ran the app under 10.4. My apps deployment target is
set to 10.4,
On Sat, Jun 27, 2009 at 4:57 PM, James Gregurich wrote:
>
> Bill,
>
> If you guys are going to some day make that statement the law, then please
> keep in mind that whatever you do has to operate with cross platform C++
> code using standard memory management techniques. Many of us have to deal
> w
On Sat, Jun 27, 2009 at 7:27 PM, Bill Bumgarner wrote:
> On Jun 27, 2009, at 6:05 PM, Nick Zitzmann wrote:
>>
>> That, and 64-bit GC apps allocate a whopping 32 GB of VM on startup on
>> Leopard, which might scare a few people that (1) watch Activity Monitor like
>> a hawk, and (2) think that VM ==
I don't believe such a switch exists since it's not really a compiler
issue: using a 10.5+ method is completely legal for your
configuration. A quick way to check what 10.5 methods you're using
would be to set the SDK to 10.4 temporarily and see what errors you
get. You can then make sure y
On Jun 27, 2009, at 8:38 PM, Michael Ash wrote:
(And I only say "almost" because I can only assume there's a corner
case out there somewhere with CoreFoundation-using code, since CF
objects are also garbage collected, but I am not actually aware of
any.)
When a CF object is created, it is CFRet
Thanks for your reply. I wasn't sure that switching the SDK would be good
enough to test. My 10.4 box died a couple of weeks ago, so I
have to have someone else run the app under 10.4. It's kind of a pain,
but if I can just switch the SDK and run it under Leopard, that's
fine.
Thanks again.
On Sat
On 27-Jun-09, at 16:26 , DKJ wrote:
I'm using this method:
textView:shouldChangeTextInRange:replacementText:
to let users put special symbols into a UITextView.
I detect the Return key by checking whether the input string is
equal to @"\n". But how would I detect the back-delete key? @"\b"
Steve,
Serial out is the tty prefixed with cu.
./a.out/dev/cu.USA49W62P1.1
Tom
On Jun 27, 2009, at 7:55 PM, Steve Checkoway wrote:
I have a Keyspan USA-49WLC USB to 4 serial ports adapter which, when
plugged in, correctly shows 4 /dev/tty.USA* and 4 /dev/cu.USA*
devices. I'm trying to talk
Tom Hohensee wrote:
Steve,
Serial out is the tty prefixed with cu.
./a.out/dev/cu.USA49W62P1.1
Right device, wrong reason. It's because "tty" is the prefix for
devices that wait for DCD handshake before returning from open().
It's an ancient Unix convention.
http://osdir.com/ml/hard
On 28/06/2009, at 8:45 AM, Jeff Johnson wrote:
One con of adopting GC on Leopard is that your app is quite likely
to spam the console log profusely, making a small but technically-
minded and vocal minority of your users very angry with you. >, dupe of , presumably never to be fixed on
Leop
I was reading the docs and did not see the answer to this so I am
hoping that I can get some help through the list.
Is it possible to publish a bonjour service on the web? I would like
to use some existing intranet code with a minimum of conversion
headaches. The easiest was to do this would
On 27 Jun 2009, at 21:58, Development wrote:
I was reading the docs and did not see the answer to this so I am
hoping that I can get some help through the list.
Is it possible to publish a bonjour service on the web?
No. Bonjour depends on the availability of local network broadcasts to
do
On Sat, Jun 27, 2009 at 9:58 PM, Development wrote:
> Is it possible to publish a bonjour service on the web? I would like to use
> some existing intranet code with a minimum of conversion headaches. The
> easiest was to do this would be if I could use bonjour via the net.
The feature you're descr
49 matches
Mail list logo