Hello
I have a thread A that spawns a thread B, and should stop, waiting
before the thread B allows thread A to continue.
In Windows, in a thread A, before spawning a thread B, i would create
a synchronization "Event" primitive in the "non signaled" mode, the
spawn a thread B, and call WaitForSing
Try NSConditionLock. Its documentation should be pretty self-explanatory.
-Heath Borders
heath.bord...@gmail.com
Twitter: heathborders
http://heath-tech.blogspot.com
On Thu, May 5, 2011 at 8:33 AM, eveningnick eveningnick
wrote:
> Hello
> I have a thread A that spawns a thread B, and should
2011/5/5 Heath Borders :
> Try NSConditionLock. Its documentation should be pretty self-explanatory.
>
Health,
thanks for the response.
However, i can't see how can i use NSConditionLock in my situation.
For every lock (or mutex/semaphore - which essentially is the same) i
need to acquire it 1 tim
On May 5, 2011, at 8:51 AM, eveningnick eveningnick wrote:
> 2011/5/5 Heath Borders :
>> Try NSConditionLock. Its documentation should be pretty self-explanatory.
>>
>
> Health,
> thanks for the response.
> However, i can't see how can i use NSConditionLock in my situation.
> For every lock (or
Dear Fritz and all,
I am reading one book, Daniel H Steinberg, Cocoa Programming, A Quick-Start
Guide for Developers, 2010. Chapter 26 introduces Dispatch Queues. It
mentions, "If you're writing an iPhone app or a desktop app that targets
Leopard or earlier, you're out of luck."
Is GCD available
On 5/5/11 10:44 AM, "Bing Li" wrote:
>Is GCD available when implementing an application on iPad/iPhone?
Yes: blocks and GCD are in iOS 4.
--Jim
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator co
in recent iOS, yes
On 05-May-2011, at 10:44 PM, Bing Li wrote:
> Dear Fritz and all,
>
> I am reading one book, Daniel H Steinberg, Cocoa Programming, A Quick-Start
> Guide for Developers, 2010. Chapter 26 introduces Dispatch Queues. It
> mentions, "If you're writing an iPhone app or a desktop a
On May 4, 2011, at 4:50 AM, Brian Bruinewoud wrote:
> Question is: Why doesn't the Nothing button animate in all calls to the
> method?
Only thing I can think of is self.nothingButton == nil.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lis
I was finally able to get it to "work".
As others have pointed out, and rightfully so, there be dragons here.
The following all constitutes godawful hacks and abuse of the system.
I'm gonna file a feature request that services should be configurable
with variable input/output so I can chuck this
Hi,
A singleton can be a good option for your shared data as suggested by
many people over here.
However, if you dont want a singleton, you can setup the Application
delegate as the data holder.
since application object can be accessed from anywhere in the app, you
can thus access your Arra
What? It does too work! Once the window is setup correctly.
This is how a do all my transparent windows, and for any naysayers out there
here is the code:
http://www.inksystemsinc.com/images/lshaped_window_proof.tar.gz
It is obviously not as simple as the two sudo lines of code I put there, but
On Thu, May 5, 2011 at 10:59 AM, Shawn Bakhtiar wrote:
> What? It does too work! Once the window is setup correctly.
>
> This is how a do all my transparent windows, and for any naysayers out there
> here is the code:
> http://www.inksystemsinc.com/images/lshaped_window_proof.tar.gz
I have seen n
Ken,
Thanks for a detailed response
Still not sure how would it be possible to do using NSConditionLock,
but i managed to do it using NSCondition :)
2011/5/5 Ken Thomases :
> On May 5, 2011, at 8:51 AM, eveningnick eveningnick wrote:
>
>> 2011/5/5 Heath Borders :
>>> Try NSConditionLock. Its docu
Can anyone provide guidance on how to access an account token and
secret? Looking to write a client app (non browser) and am getting
tangled up in the process of Oauth.
Thanks
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post a
On Thu, May 5, 2011 at 2:11 PM, R4EE wrote:
> Can anyone provide guidance on how to access an account token and
> secret? Looking to write a client app (non browser) and am getting
> tangled up in the process of Oauth.
This has nothing to do with Cocoa. Please ask your question on a more
appropr
On 06/05/2011, at 2:39 AM, Jim Thomason wrote:
>tell menu bar item "Edit"
> tell menu "Edit"
>click menu item "Copy"
To add further to the brittleness (or non-functionality, if you prefer - it's a
sliding scale), this will fail on any system set to use a non-Englis
On 05/05/2011, at 11:51 PM, eveningnick eveningnick wrote:
> What i need - is to stop the thread A immediately after the thread B
> has been spawned by a thread A.
Hang on. Why use a thread at all? If Thread A simply calls the process B
synchronously, it will achieve exactly what you have state
Hi,
I have a singleton class that manages a tableView (and provides the datasource).
Now I would like to update this tableView from another class.
Since the class that manages the tableView is a singleton I don't have to
initiate a new instance of that class.
So I thought there should be no pro
On May 5, 2011, at 16:21, Martin Batholdy wrote:
> I have a singleton class that manages a tableView (and provides the
> datasource).
>
> Now I would like to update this tableView from another class.
>
> Since the class that manages the tableView is a singleton I don't have to
> initiate a new
On 06/05/2011, at 9:21 AM, Martin Batholdy wrote:
> - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
>
> test = [tableViewController sharedPrefsWindowController];
> [test showWindow:self];
>
> updateTest *deleteEntry;
> deleteEntry = [[updateTest a
This message keeps getting logged when trying to run my app (OS X 10.6.7):
"No current point for control point bounds"
This does *not* happen on newer versions of OS X, only 10.6.7. It happens
almost as soon as the app opens and renders it totally useless as the window
will not respond. The wor
On May 5, 2011, at 7:29 PM, Indragie Karunaratne wrote:
> This message keeps getting logged when trying to run my app (OS X 10.6.7):
>
> "No current point for control point bounds"
>
Check NSBezierPath usage. A message like that shows up when -relativeXXX is
used without a current point in the
On 06/05/2011, at 10:29 AM, Indragie Karunaratne wrote:
> This message keeps getting logged when trying to run my app (OS X 10.6.7):
>
> "No current point for control point bounds"
>
> This does *not* happen on newer versions of OS X, only 10.6.7. It happens
> almost as soon as the app opens a
On Thu, May 5, 2011 at 5:29 PM, Indragie Karunaratne
wrote:
> This does *not* happen on newer versions of OS X, only 10.6.7. It happens
> almost as soon as the app opens and renders it totally useless as the window
> will not respond. The worst part is that I have no clue where it is coming
> f
Thanks for all the replies,
I will check my NSBezierPath code to see if I'm doing anything of that sort,
but like I said, this only happens on 10.6.7. And Kyle, indeed the only code of
mine that is in the stack trace is NSApplicationMain(). The stack trace
confirms this:
thread #1: tid = 0x2d0
On 06/05/2011, at 10:49 AM, Indragie Karunaratne wrote:
> but like I said, this only happens on 10.6.7
Maybe because some additional asserts/sanity checking was added in 10.6.7. It
doesn't mean the bug isn't there on earlier OS, it just means it was keeping
quiet about it.
--Graham
___
I have gone through and checked my code to make sure that I wasn't doing the
things you mentioned earlier with NSBezierPath. This is a real pain to solve
seeing as the debugger isn't giving me a single shred of useful information.
On 2011-05-05, at 6:56 PM, Graham Cox wrote:
> Maybe because som
On Thu, May 5, 2011 at 5:49 PM, Indragie Karunaratne
wrote:
> I will check my NSBezierPath code to see if I'm doing anything of that sort,
> but like I said, this only happens on 10.6.7. And Kyle, indeed the only code
> of mine that is in the stack trace is NSApplicationMain(). The stack trace
> c
I'm assuming it is, because as soon as I click "Continue" after it breaks, the
message is logged. Once the message has been logged once, the entire window
stops responding and any attempt to click on anything will just result in the
message being logged over and over again.
On 2011-05-05, at 7:
Hello,
I am trying to create a simple NSControl sub-class that will respond to mouse
clicks and key presses, however I cannot get it to take First Responder status
despite having over-ridden acceptsFirstResponder to return YES. If I place
breakpoints in acceptsFirstResponder and becomeFirstRespo
Hello!
I found very interesting behavior of text container inside NSTextView. When i
set size of container so it less than size of NSTextView frame and try
draw any figures in NSTextView drawRect: , all my figures clipped to size of
text container.
So, frame size of NSTextView "allows" me to us
31 matches
Mail list logo