Hi,
As I understand it, @property (retain) synthesizes something like this:
- (void)setMyProp:(NSString*)value
{
[value retain];
[_myProp release];
_myProp = value;
}
It is not however clear, and I haven't found it in the guide, whether
it's still my responsibility to call [_myProp release
Hi,
I'd like to draw in a graphics context in such a compositing mode:
R = MAX(S, D)
i.e. out of two colors (source and destination), the maximum color
(channel-wise) was chosen. This is basically equivalent to ORing the
colors.
Is this possible? I don't see such NSCompositingOperation. There's
lors results in brighter
pixels than each of the strings taken separately. This results in an
annoying flash of brighter color in the middle of the animation. I'd
like to fix it by limiting the brightness of all pixels by the value
of the text color.
On Tue, Sep 22, 2009 at 4:58 PM, Co
Thanks for quick reply.
> Rr = (Sr > Dr) ? Sr : Dr
> Rg = (Sg > Dg) ? Sg : Dg
> Rb = (Sb > Db) ? Sb : Db
Yes, that's what I want. After giving it another thought, I see that
it's not equivalent to bitwise OR, say MAX (1,2) = 2, wheres OR (1,2)
= 3.
Anyway, I would like to know if it's possible t
wrote:
> On Sep 22, 2009, at 6:22 AM, Oleg Krupnov wrote:
>
>> Hi,
>>
>> I'd like to draw in a graphics context in such a compositing mode:
>>
>> R = MAX(S, D)
>>
>> i.e. out of two colors (source and destination), the maximum color
>>
nd
> used later in the 2nd and subsequent composites. The process for
> these later composites gets pretty gnarley, and you're really better
> of keeping a reference to the preceeding layers if that's at all
> possible.
>
>
> paulm
>
>
> On 27/09/2009, at 12:17
channels, including the alpha channel?
Thanks
On Sun, Sep 27, 2009 at 4:25 PM, Oleg Krupnov wrote:
> Paul, thanks for such an exhaustive answer!
>
> Here are answers to your questions:
> 1. My case is the simple one -- I'm rendering all text layers at once.
> 2. Yes and
Hi,
Today I read this in wikipedia: (http://en.wikipedia.org/wiki/Core_Animation)
"Animated sequences execute in a thread independent from the main run
loop, allowing application processing to occur while the animation is
in progress."
However, in my experience, Core Animation animations do not
Thanks! You are right, I have tested it on Snow Leopard, and the CA
animation runs simultaneously with the blocking NSAnimation, as
claimed in the Wikipedia. What a revelation! I'd say, what an ANNOYING
revelation! It means that this ability of CA animation of running in a
separate thread is render
Thanks,
> AppKit 10.6 release notes say that the core of the problem is that the
> animator proxy would run the animation in NSDefaultRunLoopMode. Now
> it's done in NSRunLoopCommonModes.
>
> I guess you could run the run loop once in NSDefaultRunLoopMode
> whenever you're running in a different
I'd like to use Core Animation to create an arbitrary animation, that
is, I have a number of custom-drawn frames that I want to render in a
sequence, with a good frame rate, using the Core Animation timing
engine. How do I do this?
I am looking on CAKeyframeAnimation, which could do the job using
er event), but
I'd like to use CoreAnimation's internal timing. Is this possible at
all? I'm starting to doubt...
On Mon, Sep 28, 2009 at 5:56 PM, Matt Neuburg wrote:
> On Mon, 28 Sep 2009 14:16:36 +0300, Oleg Krupnov
> said:
>>I'd like to use Core Animation to create an a
009 at 3:35 PM, Oleg Krupnov wrote:
> Hi,
>
> I'd like my app to block while an animation is playing. Normally, I
> would simply use a blocking animation, but now I have two short
> animations playing simultaneously, so I have to make them both
> non-blocking. How do I block
, 2009, at 12:39 AM, Oleg Krupnov wrote:
>
>> I want to display one view on top on the other view, so according to
>> the documentation, I nest the topmost view inside the background view.
>>
>> It works just fine except that the mouse move messages are sent to
>> both
Well, I have found it to be even more weird. On Leopard, the Core
Animation animation sometimes can run simultaneously with the blocking
NSAnimation. In fact, I have done something to my app, don't know
what, and now CA runs in parallel with the blocking NSAnimation
causing the latter to jitter. I
Hi,
I'd like to block my application while an animation is in progress. By
"blocking" I mean that the app does not respond and discards any kind
of mouse or keyboard input except mouseDragged and mouseUp events,
just in case the user is dragging something. For this purpose I use a
run loop in NSEv
Hi,
I'd like to imitate a mouse move event programmaticaly, to refresh the
state of my custom view.
What is the best way to do it?
I am trying to use [NSApp postEvent:atStart:] and [window
postEvent:atStart:], but nothing happens, the event is not fired, and
the view does not receive it.
Here i
mouse move event. I thought imititating the
mouse move event would be the most straightforward and simple way. Was
I wrong?
On Tue, Nov 3, 2009 at 11:37 AM, Graham Cox wrote:
>
> On 03/11/2009, at 8:03 PM, Oleg Krupnov wrote:
>
>> I'd like to imitate a mouse move event progra
sting fake mouse moved events is a bad
idea? Some discouragement in the docs, or something?
Oleg.
On Tue, Nov 3, 2009 at 12:07 PM, Graham Cox wrote:
>
> On 03/11/2009, at 8:48 PM, Oleg Krupnov wrote:
>
>> As I said, I am trying to refresh the state of the view after a
>>
, 2009 at 1:54 PM, Graham Cox wrote:
>
> On 03/11/2009, at 10:39 PM, Oleg Krupnov wrote:
>
>> There are basically two or three custom views of different class in
>> the window that need refresh. These views are totally custom, which
>> means I could of course implemen
Dave, I already tried CGEventPost() but it does not seem to work
either -- just nothing happens. I'd appreciate an example of working
code, I haven't been able to find any.
I also tried CGPostMouseEvent(). This works, but in a weird way -- it
actually moves the mouse cursor (kind of a too low-leve
test
its items for the coordinate
3. set the controller's selection to that item
This all, and exactly this, would happen all by itself, by the already
existing code, in case if I sent the fake mouse moved event.
On Tue, Nov 3, 2009 at 3:09 PM, Graham Cox wrote:
>
> On 03/11/2009,
Hi,
I need to open a bitmap file, perhaps do some filtering, and render it
to the screen with the maximum possible performance.
I am allowed to assume Snow Leopard.
Now I am a bit confused what technology (-ies) I should use to achieve
this in the fastest and easiest, and the most up-to-date way
Thanks everyone! Ariel, thanks for the CoreImageGLTextureFBO sample.
No, Paul, NSImage performance is not enough for my purpose.
Mike, I am aware that OpenGL is perhaps the fastest drawing API in the
system. However, because it's so low-level, there must have been built
many wrappers around it in
Hi,
While it's good for my app to run in 64-bit mode on Snow Leopard, it
turns out not desirable on Leopard, because of the delay of loading
all 64-bit frameworks (in case if my app is the first 64-bit app
launched after system boot). It literally makes me wait for about ten
seconds, and the perfo
list add:
>
> LSMinimumSystemVersionByArchitecture
>
> x86_64
> 10.6.0
>
>
>
> Kevin
>
>
> On Apr 8, 2010, at 7:21 AM, Oleg Krupnov wrote:
>
>> Hi,
>>
>> While it's good for my app to run in 64-bit mode on Snow Leopard, it
>> turns
nch with a specific architecture, but if you can use LS it handles
> all the dirty work for you.
>
>
> On Apr 8, 2010, at 8:53 AM, Oleg Krupnov wrote:
>
>> This would be a perfect solution, but I've found that on Leopard, this
>> key seems to be ignored, the system
n Apr 8, 2010, at 8:59 AM, Oleg Krupnov wrote:
>
>> No, I'm just double-clicking it in Finder.
>>
>> On Thu, Apr 8, 2010 at 8:57 AM, Kevin Wojniak wrote:
>>> Are you launching with NSTask or some other variant? If so it won't work.
>>> You need to
Hi,
Is there a way to programmatically empty the Trash can?
I could delete all files from /Users//.Trash folder, but I am
not sure if it's a legitimate way. Also it will not include trashed
files from other volumes, stored in /.Trashes/. The latter
are generally not accessible even to list them w
What is "securely" in this context?
On Fri, Apr 16, 2010 at 9:14 AM, Dave Carrigan wrote:
>
> On Apr 15, 2010, at 11:05 PM, Oleg Krupnov wrote:
>
>> I could delete all files from /Users//.Trash folder, but I am
>> not sure if it's a legitimate way.
>
> I
Yes, I see that I can use AppleScript. But is this really the only
way? I would like to avoid Finder UIs popping up.
On Fri, Apr 16, 2010 at 9:30 AM, Jens Alfke wrote:
>
> On Apr 15, 2010, at 11:05 PM, Oleg Krupnov wrote:
>
>> Is there a way to programmatically empty the Trash ca
But the progress-bar window will still pop up...
On Fri, Apr 16, 2010 at 9:41 AM, Dave Keck wrote:
> tell application "Finder" to empty trash without warns before emptying
>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
> The only app that the user wants to empty the trash is Finder, not yours. If
> they want it emptied (or emptied securely), they'll go to the Finder and use
> the menu there. It's OK for your app to move stuff to the trash as long as
> it's clear to the user that will happen, but emptying it is
Hi,
Is there a way to clone a CALayer? I need two copies of the same
drawing, which takes a long time to calculate and draw, so I'd prefer
to simply copy the result. A brief look shows that CALayer does not
support -[NSObject copy].
Thanks!
___
Cocoa-d
Hi,
I am animating a custom NSView using an NSAnimation. Depending on the
current progress value, the view draws a different thing in its
drawRect:
In the animation's setCurrentProgress: routine, I call [view
setNeedsDisplay:YES] to invalidate the view and cause it repaint.
However, in this way
Hi,
I'd like to create a custom view based on Core Animation, namely, a
layer-hosting view. In other words, I'd like to directly manipulate
layers in my code rather than using children NSView's.
The custom view is like a matrix consisting of cells. Each cell is
represented with a separate CALayer
like you
> want to do in the second to last paragraph.
>
>
> Why can’t you just use layer-backed views? You get the controls, you can
> still do animation using the animation proxy and the other animation methods.
>
> On Jun 30, 2010, at 5:27 AM, Oleg Krupnov wrote:
>
>
2010, at 3:14 AM, Oleg Krupnov wrote:
>
>> Right, I want to add subviews into a layer-hosting view.
>>
>
> You can’t.
>
>> I want to do this, in particular, because I want the "cells" in my
>> custom view to drop shadows. If I implement cells like simple sub
Hi,
In a layer-hosting custom view, I'm flipping the root layer coordinate
system with the following code:
CGAffineTransform flipTransform;
flipTransform.a = 1.0;
flipTransform.b = 0.0;
flipTransform.c = 0.0;
flipTransform.d = -1.0;
flipTransform.tx = 0.0;
flipTransform.ty = 0.0;
[rootLayer setAf
s,
On Fri, Jul 16, 2010 at 7:01 AM, Scott Anguish wrote:
>
> On Jul 15, 2010, at 1:24 PM, Kyle Sluder wrote:
>
>> On Thu, Jul 15, 2010 at 9:18 AM, Oleg Krupnov wrote:
>>> Is this a bug? And how to work around it?
>>
>> There are lots of bugs with flipped layer-
Hi,
I'm using quite a few animations in my app's UI, using the Core
Animation, and all of the animations work wonderfully smooth and
quick.
However, when I need to animate the frame of the window (namely,
change its size), it feels so sluggish and jagged.
I guess this is because, unlike the view
It blocks the main thread while running, but is generally pretty smooth.
>
> On 16 Jul 2010, at 10:55, Oleg Krupnov wrote:
>
>> Hi,
>>
>> I'm using quite a few animations in my app's UI, using the Core
>> Animation, and all of the animations work wonderfully
ri, Jul 16, 2010 at 2:38 PM, vincent habchi wrote:
> Le 16 juil. 2010 à 12:38, Oleg Krupnov a écrit :
>
>> Any other ideas?
>
> Is your view CALayer backed?
> Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pleas
l. Sigh :(
On Fri, Jul 16, 2010 at 11:48 AM, Oleg Krupnov wrote:
> Further investigation has shown that when the custom layer-hosting
> view is placed in the parent layer-backed container view, the parent
> view internally discards the flipping transform of the child view's
> roo
Hi,
I need to make a snapshot of a CALayer, together with all its
sublayers and effects, into a bitmap.
I've found I can use -[CALayer renderInContext:], but I find it too
slow, particularly because some of the sublayers have shadows and the
Shark shows that most of time is spent in calculating b
Hi,
I've occasionally noticed after upgrading to Lion that my exception
handling code no longer provides full stack trace, but only some
trimmed piece.
For example, I performed the following experiment. There is an
-emulateCrash: action method, implemented in MyWindowController,
attached to a men
Hi,
I am implementing the Lion's User Interface Preservation, and must be
overlooking something. The Mac OS X Application Programming Guide
says:
"Every window is expected to identify a class that knows about the
window and can act on its behalf at launch time. This class is known
as the restorat
Hi,
I'm implementing a new Lion's API, namely the resume. I need to make
the following call:
[window setRestorationClass:someClass];
I'd like my app to also work on Snow Leopard, so I do this:
if ([window respondsToSelector:@selector(setRestorationClass:)])
{
[window setRestorationClass:someCla
So, gentlemen, the OP has ended up completely baffled with your discussion :)
Do I have to build and ship two separate versions of my app, for 10.6
and for 10.7??! This would be a nightmare!
At the bottom line, what is the legitimate way of supporting older
versions of Mac OS X (10.6) in an app d
Hi,
I'd like to get the mount options of a particular volume (like "rw",
"nobrowse", "automounted" etc.) of a mounted volume, like those I get
when I run "mount" command in the Terminal.
It should be easy, but I can't seem to find anything in the library.
Thanks
_
1, at 6:42 AM, Oleg Krupnov wrote:
>
>> I'd like to get the mount options of a particular volume (like "rw",
>> "nobrowse", "automounted" etc.) of a mounted volume, like those I get
>> when I run "mount" command in the Terminal.
&
Hi,
Previously, I've been using a simple switch: use 10-based for 10.6 and
later, and 2-based for earlier versions of the Mac OS X, but I've
learned that there are some utilities (e..g switchDiskSizeBase, see
http://web.me.com/brkirch/brkirchs_Software/switchDiskSizeBase/switchDiskSizeBase.html)
t
Yes, I checked the source code of switchDiskSizeBase, and as far as I
can see, the guy is using some low-level hack, like opening a system
framework binary, uncompress it, find some bytes at certain magic
offset, read and rewrite them. This kind of thing isn't acceptable for
my app, I'm looking for
An interesting question. The following samples are equivalent in terms
of compiled code, but which one is more correct from the language's
point of view?
self = [super init];
if (self)
{
}
return self;
self = [super init];
if (self != nil)
{
}
return self;
The Xcode samples promote the first var
P.S. Sorry for posting the question into the wrong list. I'm a bit shaky in the
classification of apple lists.
On Friday, February 24, 2012 at 9:47 PM, Kyle Sluder wrote:
> On Fri, Feb 24, 2012 at 6:50 AM, Oleg Krupnov (mailto:oleg.krup...@gmail.com)> wrote:
> > An interest
This question is related to C language, rather than Obj-C.
I have a data structure
typedef struct
{
int x;
int y;
} A;
In my code, I have a function foo(bool xOrY) that runs a long-lasting
loop that iterates through a huge array of A structures and for each
structure, it should get x or y
oops, small correction, in the second code sample it should read:
if (xOrY)
{
offset = (char*)&(test.y) - (char*)&test;
}
else
{
offset = (char*)&(test.x) - (char*)&test;
}
On Mon, May 30, 2011 at 3:02 PM, Oleg Krupnov wrote:
> This question is re
вия?
>
>
>
> On 2011/May/30, at 16:02:09, Oleg Krupnov wrote:
>
>> This question is related to C language, rather than Obj-C.
>>
>> I have a data structure
>>
>> typedef struct
>> {
>> int x;
>> int y;
>> } A;
>>
>>
most optimal possible thing
up front. Maybe it's just nit-picking... But I became curious if the
above idea would be feasible at all!
Thanks Graham!
On Mon, May 30, 2011 at 3:16 PM, Graham Cox wrote:
>
> On 30/05/2011, at 10:10 PM, Oleg Krupnov wrote:
>
>>> I am looking to o
{
int value = a[i].y;
...
}
}
}
Would this suffice?
Thanks!
On Mon, May 30, 2011 at 4:14 PM, Graham Cox wrote:
>
> On 30/05/2011, at 10:26 PM, Oleg Krupnov wrote:
>
>> I knew this question was coming! :) Well, maybe you are right. The
>> proble
Hi,
The QuickLook API documentation defines and contrasts "thumbnails" and
"previews", but all I see on the client side is the only function
QLThumbnailImageCreate. I assume this is for creating "thumbnails",
isn't it? In that case, how do I create "previews" on the client side?
Alternatively, if
Hi,
I am migrating my code to use GCD blocks instead of NSOperations.
NSOperation has a -cancel method to thread-safely notify the
NSOperation thread that it needs to be canceled.
How do you do this for an async GCD block?
I.e. suppose I have the following code:
@implementation MyClass
- (void
>> I am migrating my code to use GCD blocks instead of NSOperations.
>
> Why?
I should have said, I'm writing a new app and I am migrating my
knowledge of implementing multi-threading from NSOperation to GCD :)
(And I should say, I'm beginning to like the easiness of GCD, even
though I was initia
Hi,
I'm a little shaky in this area, so I beg your pardon.
CALayer has a "contents" property which is a CGImageRef, i.e. a Core
Graphic image. CGImages are stored in RAM.
CALayer is built on top of OpenGL and uses VRAM to store its bitmap
image internally (a texture).
Now suppose that I have a
Hi,
Is there a way, at compile time, to automatically check that all
strings referenced anywhere in my project via NSLocalizedString have
their localized counterparts in *.strings files for all localizations
I have included into the project? So that if a string is missing in a
localization, I woul
On Leopard, I used to override [NSApp reportException:] method to
track all uncaught exceptions that occur in my app.
However, I have just discovered that on Snow Leopard, this method
never gets called. Instead, the application handles the exception
somewhere inside and I only get this message in
ut it does not work either.
Any ideas? Thanks!
On Fri, Dec 18, 2009 at 1:48 AM, Ken Thomases wrote:
> On Dec 17, 2009, at 8:41 AM, Oleg Krupnov wrote:
>
>> On Leopard, I used to override [NSApp reportException:] method to
>> track all uncaught exceptions that occur in my app.
>
owever, somehow the [exception callStackReturnAddresses] is nil,
which is now another problem for me :(
Oleg.
On Sat, Dec 19, 2009 at 1:15 PM, Ken Thomases wrote:
> On Dec 19, 2009, at 4:56 AM, Oleg Krupnov wrote:
>
>> On Fri, Dec 18, 2009 at 1:48 AM, Ken Thomases wrote:
>>>
>>>
I'd like to create a window that would behave exactly as a sheet,
except that it doesn't slide down from the window title bar, but fades
in instead. The "sheet" should be modal, but the parent window should
still be resizable and closable.
For this reason (and also some others), I can't use [NSApp
w should return TRUE/FALSE in its
isKeyWindow.
Any ideas?
On Fri, Jan 22, 2010 at 10:47 PM, Andy Lee wrote:
>
> On Friday, January 22, 2010, at 02:27PM, "Oleg Krupnov"
> wrote:
>>I'd like to create a window that would behave exactly as a sheet,
>>except tha
at, Jan 23, 2010 at 12:23 AM, Andy Lee wrote:
> On Friday, January 22, 2010, at 04:18PM, "Oleg Krupnov"
> wrote:
>>Thanks Andy.
>>
>>Here's more info. The sheet is a semi-transparent nag window with some
>>text and a couple of buttons, that overlaps
Hi,
I'd like my app's main window to appear on the same screen where it
was last closed, on a multi-monitor Mac. How do I do this?
I checked the docs and found that I could use [[[window screen]
deviceDescription] objectForKey:@"NSScreenNumber"] as a unique
identifier that is permanent across sys
Hi,
It seems that [NSWindow center] centers the window on the *main* screen.
Now how do I center a window on the screen it currently shows on, on a
multi-monitor Mac?
I could write my own code to position the window, but I don't know how
to reproduce the recommended position of the centered wind
Thanks Graham,
>
> You need to consider what this really means. For example, what if a window is
> placed so appears on more than one monitor at the same time?
>
> Actually, NSWindow already works this out - its -screen method returns the
> screen it mostly is placed on (i.e. contains the larges
Hi,
After publishing an update of my app, I have received quite a few
crash dumps with very weird stack traces that I cannot understand and
fix.
Namely, the exception message says that AXTitle, or AXWindow or
AXValue or AXDocument etc. is unsupported by NSWindow, NSOpenPanel,
NSApplication and ot
app crashing -- do you have
> some actual crash reports? If so, reply with those to the list and we may be
> able to help you.
>
> -corbin
>
> On Feb 2, 2010, at 10:04 AM, Oleg Krupnov wrote:
>
>> Hi,
>>
>> After publishing an update of my app, I have received qu
ng what you think you are?
> -Ken
> On Tue, Feb 2, 2010 at 6:41 PM, Oleg Krupnov wrote:
>>
>> Hi Corbin,
>>
>> Thanks for your quick response. You are right, I should have been more
>> specific. This is not a "crash" in precise meaning. This is an
&g
> // exceptions for flow control
> doBreak = ![name isEqualToString:NSAccessibilityException];
> }
>
> if (doBreak)
> {
> report_problem(...)
> }
> }
>
> Jesper Storm Bache
>
> On Feb 2, 2010, a
;Debug level" preference that you can have users turn on
> (and off). Make the default "Off".
>
> Jesper
>
> On Feb 2, 2010, at 12:18 PM, Oleg Krupnov wrote:
>
>> Fixed now, it worked like a charm! :)
>>
>> Indeed, I was intercepting exceptions
Is there a way to find out if a particular exception being thrown will
be caught by a @catch handler further down the code, and if this
handler is top-level or not? By top-level I mean the handler on the
NSApplication level.
I'm trying to build a reliable handler of uncaught exceptions that
shuts
I want to display one view on top on the other view, so according to
the documentation, I nest the topmost view inside the background view.
It works just fine except that the mouse move messages are sent to
both the subview and the superview, whereas I'd like them to be
directed only to the subvie
I'd like the "Go Back" command in my app to be triggered by both Cmd+[
and Cmd+<- (left arrow) keyboard shortcuts. How do I do that?
I am aware of the [NSMenuItem isAlternate] but it only works if the
"keyboard equivalents" are the same and only the modifiers differ,
whereas in my case the opposit
Hi,
I'd like my app to block while an animation is playing. Normally, I
would simply use a blocking animation, but now I have two short
animations playing simultaneously, so I have to make them both
non-blocking. How do I block the app in this case? Basically I'd like
to prevent the user from (ina
Hi,
I have a main process and an auxiliary process that vends
NSDistantObject to do some job for the main process upon request. In
other words, the main process is a client, and the auxiliary process
is a server. I have been able to implement this when there is only one
thread in the client proces
Thanks, Kyle
> Multithreading is not a prerequisite for serving multiple clients. Depending
> on what your server's doing, sticking with NSRunLoop-based multiplexing might
> be a lot easier.
The server's job is associated with slow devices, such as disk, but
are quite lengthy in time. In your s
Hi,
I have a NSMutableArray and need to add a number of elements to it,
and their quantity I know in advance (in fact, they come from another
array).
I think that if I add them one-by-one in a loop, the array will have
to reallocate its internal memory frequently. This seems inefficient.
I'd lik
ts or suggestions of other designs. Am I on
the right path at all?
Thanks,
Oleg.
On Mon, Sep 20, 2010 at 8:32 PM, Oleg Krupnov wrote:
> Thanks, Kyle
>
>> Multithreading is not a prerequisite for serving multiple clients. Depending
>> on what your server's doing, s
Hi,
Here is the way to acquire connection from a server, as described in the docs:
NSConnection* theConnection = [NSConnection
connectionWithRegisteredName:@"server" host:nil];
My question is: is it possible to acquire the connection in another
way than using a name?
Why I want this: My client
ead object on the server
side, not the root vended object
NSObject* serverObject = [[[VendedServerObject alloc]
init] autorelease];
return serverObject;
}
Thanks!
Oleg.
On Tue, Sep 28, 2010 at 9:12 AM, Ken Thomases wrote:
> On Sep 28, 2010, at 12:24 AM, Oleg Krupnov wrote:
>
iginal question in the
subject of this mail :)
The other question I've got is how do I exit the newly created thread
when its job is done?
Thanks,
Oleg.
On Tue, Sep 28, 2010 at 11:11 AM, Ken Thomases wrote:
> On Sep 28, 2010, at 2:29 AM, Oleg Krupnov wrote:
>
>> Thanks Ken,
AM, Ken Thomases wrote:
> On Sep 28, 2010, at 1:23 PM, Oleg Krupnov wrote:
>
>> So, let's assume I create the connection in this way:
>>
>> NSConnection* connection = [NSConnection connectionWithReceivePort:nil
>> sendPort:[[NSMachBootstrapServer sharedIn
ed, is not released if the request is handled in the main thread,
when I call -invalidate on the connection. And there does not seem a
way to get the thread created by runInNewThread to exit it manually,
or is there?
Thanks,
Oleg.
On Wed, Sep 29, 2010 at 2:22 PM, Ken Thomases wrote:
> Hi Oleg,
Oleg.
On Thu, Sep 30, 2010 at 3:04 AM, Ken Thomases wrote:
> Hi Oleg,
>
> On Sep 29, 2010, at 9:57 AM, Oleg Krupnov wrote:
>
>> I tried -[NSConnection removeRunLoop:[NSRunLoop currentRunLoop]], but
>> it doesn't seem to change anything.
>
> Huh. I don't kn
(!isTerminated)
{
[[NSRunLoop currentRunLoop] run];
}
}
[pool release];
}
However, the line "registerName" returns NO. What is the problem?
Thanks,
Oleg.
On Thu, Sep 30, 2010 at 7:45 PM, Ken Thomases wrote:
> On Sep 30, 2010, at 11:17 AM, Oleg Krupnov wr
Is it so critical? How many files do you have to delete?
>
> On Oct 4, 2010, at 10:12 AM, Oleg Krupnov wrote:
>
>> Let me make the question more clear: I am aware of functions like
>> [NSFileManager removeItemAtPath: error:], but what they do under the
>> hood is they it
Thanks everyone! Now I see.
Oleg.
On Mon, Oct 4, 2010 at 4:14 PM, Kirk Kerekes wrote:
>> Is there a way to delete a directory instantly and completely without
>> first deleting all its subdirectories and files recursively?
>
> The hierarchical structure that you see is not "real" -- directories
Hi,
Is there a way to delete a directory instantly and completely without
first deleting all its subdirectories and files recursively?
Thanks.
Oleg.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
, without even implicit recursion. Just remove the
directory and the files and subdirectories would disappear?
Thanks!
On Mon, Oct 4, 2010 at 11:03 AM, Oleg Krupnov wrote:
> Hi,
>
> Is there a way to delete a directory instantly and completely without
> first deleting all its subdirectori
Hi,
I have a server and a client processes running on the same machine.
Per client request, the server does some job and returns the result to
the client in form of some MyObject.
This is the interface vended by the server:
- (out bycopy MyObject*)doSomeJob;
Despite bycopy, I see in debugger th
e:count:at:, -encodeObject: and their decode*
counterparts. The last encodeObject/decodeObject method processes
object members recursively.
For my application it's okay to not use keys in encoding/decoding, so
it solved the problem.
Oleg.
On Mon, Oct 18, 2010 at 6:46 PM, Oleg Krupnov wro
1 - 100 of 256 matches
Mail list logo