Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> {locked = false, wakeup port = 0x5a03, > stopped = false, > current mode = (none), > common modes = {type = mutable set, > count = 1, > entries => > 1 : {contents = "kCFRunLoopDefaultMode"} > } > , > common mode items = {type = mutable set, > count = 1, > entries => > 25 : {locked = No, signalled

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> Did you edit the above quoted output at all? First, I would expect a lot more > information to be printed for the main run loop, and second, I would > expect to see NSEventTrackingRunLoopMode and NSModalPanelRunLoopMode > as part of the common modes set. That is, are you sure you entered: p

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Gideon King
That was the output for $rdi at the CGRunLoopWakeUp breakpoint immediately after the call to performSelectorOnMainThread... The output of po (void*)CFRunLoopGetMain() on the line after that is http://pastie.org/1358258 When I print $rdi at the CGRunLoopWakeUp in my mini test application, I do g

Re: iOS when is my app launched

2010-12-08 Thread Dave Keck
> How do I find the date and time when my application launched? I've done this > before on OS X, but it was a while ago and I've forgotten how. :) I'm not sure what you mean exactly, but [NSDate date] will return the current date/time. Tuck that instance in memory when your application launches a

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread jonat...@mugginsoft.com
On 8 Dec 2010, at 08:57, Gideon King wrote: > That was the output for $rdi at the CGRunLoopWakeUp breakpoint immediately > after the call to performSelectorOnMainThread... > > The output of po (void*)CFRunLoopGetMain() on the line after that is > http://pastie.org/1358258 > > When I print $rd

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> That was the output for $rdi at the CGRunLoopWakeUp breakpoint immediately > after the call to performSelectorOnMainThread... Sorry, realized that after I sent. The output still isn't what I would expect though: on my system, the run loop supplied to CFRunLoopWakeUp() from within the -performSe

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Gideon King
Thanks Jonathan, but that's exactly what I did, and I couldn't replicate the problem in my test project, which is why I'm saying that something outside the multithreading is screwing things up somehow, but that could be anywhere in 23,000 lines of code, and I don't know what to look for. This is

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Gideon King
You are correct. They are two different things: Broken on CFRunLoopWakeUp: (gdb) po $rdi {locked = false, wakeup port = 0x5c03, stopped = false, current mode = (none), common modes = {type = mutable set, count = 1, entries => 2 : {contents = "kCFRunLoopDefaultMode"} } ... (gdb) po (

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> You are correct. They are two different things: Alright, does the following assertion fail when placed before the -performSelectorOnMainThread line? (Ignore the warning - using private APIs.) id a = (id)[[[NSThread mainThread] runLoop] getCFRunLoop]; id b = (id)CFRunLoopGetMain(); N

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Gideon King
0x114400a60 ?== 0x1029006e0 Assertion fails. The two are completely different as per previous results. FYI, I do not create any run loops explicitly in my application, and can't think of anything I am doing which would create one implicitly. Regards Gideon On 08/12/2010, at 8:55 PM, Dave Kec

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread jonat...@mugginsoft.com
On 8 Dec 2010, at 11:43, Gideon King wrote: > 0x114400a60 ?== 0x1029006e0 > > Assertion fails. The two are completely different as per previous results. > > FYI, I do not create any run loops explicitly in my application, and can't > think of anything I am doing which would create one implicit

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> FYI, I do not create any run loops explicitly in my application That's good, because run loops can't be created explicitly. :) > and can't think of anything I am doing which would create one implicitly. A run loop is automatically created for every thread that's spawned. (I believe this happen

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Gideon King
OK, I meant I'm not *running* any run loops myself - as per the threading documentation: "For secondary threads, you need to decide whether a run loop is necessary, and if it is, configure and start it yourself. You do not need to start a thread’s run loop in all cases. For example, if you use a

C++ linkage errors in XCode

2010-12-08 Thread Vijayakumar_Thota
Dear List, Facing the below issue in compiling the project: I am developing an application, which is using the third party library. The third party library is an Objective-C++ code. When I try to compile my code, its giving the following errors: "iostream: No such file or directory string: No

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Gideon King
So could this issue be something to do with the timing of the first time the threaded operation is run? During startup of the application, in an awakeFromNib, it calls a performSelector...afterDelay:0, and when that eventually fires, it triggers the thread to run. I would have thought that wou

Re: C++ linkage errors in XCode

2010-12-08 Thread Andreas Grosam
On Dec 8, 2010, at 1:25 PM, Vijayakumar_Thota wrote: > Dear List, > > Facing the below issue in compiling the project: > > I am developing an application, which is using the third party library. The > third party library is an Objective-C++ code. When I try to compile my code, > its giving t

Re: C++ linkage errors in XCode

2010-12-08 Thread Vijayakumar_Thota
Thanks Andreas. When I have changed the file extension to .mm, those errors are resolved. Regards, Vijay kumar thota On 12/8/10 6:14 PM, "Andreas Grosam" wrote: On Dec 8, 2010, at 1:25 PM, Vijayakumar_Thota wrote: > Dear List, > > Facing the below issue in compiling the project: > > I am de

Re: iOS when is my app launched

2010-12-08 Thread Jason Bobier
Hey Dave, I'm talking about the Carbon equivalent of processLaunchDate in the ProcessInfoExtendedRec. This is the actual date & time that the process launched. I want to use it to give my game's splash screen a consistent amount of time on screen. Here's how: I set the Default.png to the spla

Re: iOS when is my app launched

2010-12-08 Thread glenn andreas
On Dec 8, 2010, at 7:38 AM, Jason Bobier wrote: > Hey Dave, > > I'm talking about the Carbon equivalent of processLaunchDate in the > ProcessInfoExtendedRec. This is the actual date & time that the process > launched. > > I want to use it to give my game's splash screen a consistent amount of

Re: Source files are not shown in the Xcode

2010-12-08 Thread Matt Neuburg
On Tue, 7 Dec 2010 12:41:33 +0800, ico said: >Hi, > >I am working on an existing project. My first step is to be familiar with >the project by going through the codes. >And I see they use some classes which are not shown in xcode (groups and >files list). It seems they didn't >add those files to t

Re: SearchBar doesn't display at all

2010-12-08 Thread Matt Neuburg
On Tue, 7 Dec 2010 08:53:05 -0500, Jonathan Schmidt said: >I have an app that has a TabBar as the rot controller, a NavigationController >in the first tab, and a TableView NIB as the first view in the >NavigationController (I'll call that the Primary TableView). That TableView >provides a list

Re: iOS when is my app launched

2010-12-08 Thread Jason Bobier
Hi Glenn, This is for a game, which is an exception to this rule. Jason On Dec 8, 2010, at 9:27 AM, glenn andreas wrote: > > On Dec 8, 2010, at 7:38 AM, Jason Bobier wrote: > >> Hey Dave, >> >> I'm talking about the Carbon equivalent of processLaunchDate in the >> ProcessInfoExtendedRec. T

Re: iOS when is my app launched

2010-12-08 Thread Matt Gough
OK, but please consider providing the user the ability to tap the screen to skip the splash screen[s]. (e.g See Angry Birds) Matt On 8 Dec 2010, at 15:50:45, Jason Bobier wrote: > Hi Glenn, > > This is for a game, which is an exception to this rule. > > Jason > > On Dec 8, 2010, at 9:27 AM,

Re: SearchBar doesn't display at all

2010-12-08 Thread Jonathan Schmidt
Thanks for the reply. That's why this doesn't make sense. The second NIB DOES have a search bar, but it doesn't display at runtime. Hence, my confusion/problem. On 12/8/10 10:45 AM, "Matt Neuburg" wrote: >On Tue, 7 Dec 2010 08:53:05 -0500, Jonathan Schmidt >said: >>I have an app that has a T

Re: SearchBar doesn't display at all

2010-12-08 Thread Jonathan Schmidt
By the way, I have a small sample project that I can use to show the problem if anyone is interested. I can e-mail upon request. On 12/8/10 10:45 AM, "Matt Neuburg" wrote: >On Tue, 7 Dec 2010 08:53:05 -0500, Jonathan Schmidt >said: >>I have an app that has a TabBar as the rot controller, a >>N

Re: SearchBar doesn't display at all

2010-12-08 Thread Matt Neuburg
On Dec 8, 2010, at 8:58 AM, Jonathan Schmidt wrote: > The second NIB > DOES have a search bar, but it doesn't display at runtime. But we are agreed that this has nothing to do with the search display controller, right? That was just a red herring in your original email? In other words, what I'

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Charles Srstka
On Dec 8, 2010, at 6:30 AM, Gideon King wrote: > So could this issue be something to do with the timing of the first time the > threaded operation is run? > > During startup of the application, in an awakeFromNib, it calls a > performSelector...afterDelay:0, and when that eventually fires, it

Re: SearchBar doesn't display at all

2010-12-08 Thread Jonathan Schmidt
Thank you for the reply, Matt. I feel like we are getting somewhere! First, we are agreed that the SearchDisplayController doesn't actually display anything. I simply mentioned it because by dragging the SearchDisplayController onto the TableView, it automatically creates the SearchBar for me.

Re: SearchBar doesn't display at all

2010-12-08 Thread Matt Neuburg
On Dec 8, 2010, at 10:01 AM, Jonathan Schmidt wrote: > Thank you for the reply, Matt. I feel like we are getting somewhere! > > First, we are agreed that the SearchDisplayController doesn't actually > display anything. I simply mentioned it because by dragging the > SearchDisplayController ont

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Kyle Sluder
On Wed, Dec 8, 2010 at 4:30 AM, Gideon King wrote: > So could this issue be something to do with the timing of the first time the > threaded operation is run? > > During startup of the application, in an awakeFromNib, it calls a > performSelector...afterDelay:0, and when that eventually fires, i

OS X: how to create a text label?

2010-12-08 Thread Artemiy Pavlov
Hi all! I would like to add a simple text label to my Cocoa UI on OS X, programaticaly. It's just a static text label that'll be there unchanged, that has a certain font, size and color. What is the best way to do this? I assumed this would be as easy as with NSBezierCurve, but it doesn't

Re: OS X: how to create a text label?

2010-12-08 Thread Laurent Daudelin
On Dec 8, 2010, at 11:15, Artemiy Pavlov wrote: > Hi all! > > I would like to add a simple text label to my Cocoa UI on OS X, > programaticaly. It's just a static text label that'll be there unchanged, > that has a certain font, size and color. What is the best way to do this? > > I assumed th

Re: OS X: how to create a text label?

2010-12-08 Thread Wim Lewis
On 8 Dec 2010, at 11:15 AM, Artemiy Pavlov wrote: > I would like to add a simple text label to my Cocoa UI on OS X, > programaticaly. It's just a static text label that'll be there unchanged, > that has a certain font, size and color. What is the best way to do this? Use an NSTextField, and set

Re: OS X: how to create a text label?

2010-12-08 Thread Artemiy Pavlov
Oh, wonderful, thank you, Laurent! I assume NSTextField will work the same way as in iOS, right? E.g. this tutorial will apply: http://icodeblog.com/2010/01/04/uitextfield-a-complete-api-overview/ Artemiy. On 8 Dec 2010, at 21:42, Laurent Daudelin wrote: On Dec 8, 2010, at 11:15, Artemiy P

Re: OS X: how to create a text label?

2010-12-08 Thread Artemiy Pavlov
Thanks, Wim! On 8 Dec 2010, at 21:43, Wim Lewis wrote: On 8 Dec 2010, at 11:15 AM, Artemiy Pavlov wrote: I would like to add a simple text label to my Cocoa UI on OS X, programaticaly. It's just a static text label that'll be there unchanged, that has a certain font, size and color. What i

iOS Pages app UI Widget question.

2010-12-08 Thread colo
Hi apologies if I have the incorrect mailing list. I am looking to build a sample app that utilizes the feature in Pages like Apps for a Box Shape object with four NE SE SW NW corner control resizing handles. In various books I have read up on drawing closed UI Bezier Paths in various books but ha

Re: iOS Pages app UI Widget question.

2010-12-08 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/8/10 12:50 PM, colo wrote: > Hi apologies if I have the incorrect mailing list. > > I am looking to build a sample app that utilizes the feature in Pages > like Apps for a Box Shape object with four NE SE SW NW corner control > resizing handles.

Re: iOS Pages app UI Widget question.

2010-12-08 Thread colo
On Wed, Dec 8, 2010 at 3:57 PM, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 12/8/10 12:50 PM, colo wrote: >> Hi apologies if I have the incorrect mailing list. >> >> I am looking to build a sample app that utilizes the feature in Pages >> like Apps for a Box Shape

Re: OS X: how to create a text label?

2010-12-08 Thread Laurent Daudelin
Similar but on iOS, it is a UILabel that you want to use. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Dec 8, 2010,

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> So could this issue be something to do with the timing of the first time the > threaded operation is run? I'd imagine it involves NSThread making an assumption about the initial invocation of one of its APIs, and the run loop that it expects to exist at the time of that invocation. Assuming your

Re: performSelectorOnMainThread fails second time through

2010-12-08 Thread Dave Keck
> Hey, this sounds very familiar! > http://lists.apple.com/archives/cocoa-dev/2010/Sep/msg00426.html That seems like a distinct issue. The problem Gideon is seeing is that [NSThread mainThread] holds a (private) reference to a run loop that isn't the main thread's run loop. Since -performSelectorO

Re: iOS Pages app UI Widget question.

2010-12-08 Thread John Joyce
On Dec 9, 2010, at 6:05 AM, colo wrote: > On Wed, Dec 8, 2010 at 3:57 PM, Conrad Shultz > wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 12/8/10 12:50 PM, colo wrote: >>> Hi apologies if I have the incorrect mailing list. >>> >>> I am looking to build a sample app that uti

Re: OS X: how to create a text label?

2010-12-08 Thread John Joyce
Do not assume they are the same! They are quite *similar* but method names and available methods can be very different between Cocoa and Cocoa touch. On Dec 9, 2010, at 5:25 AM, Artemiy Pavlov wrote: > Oh, wonderful, thank you, Laurent! > > I assume NSTextField will work the same way as in iOS,

Re: iOS Pages app UI Widget question.

2010-12-08 Thread Kyle Sluder
On Wed, Dec 8, 2010 at 3:46 PM, John Joyce wrote: > These are called Bezier curves. They are used in vector art programs. > Cocoa already provides the ability to draw such things. I think Nick is specifically looking for the resize handle widgets, not the curves themselves. --Kyle Sluder ___

Re: iOS Pages app UI Widget question.

2010-12-08 Thread colo
> I think Nick is specifically looking for the resize handle widgets, > not the curves themselves. > > --Kyle Sluder Correct Kyle. To add to that I am looking for the iOS implementation of them. Drawkit has not been ported to iOS. > If Apple provided this kind of object to everyone, you would see

IKImageView - image erase left overs

2010-12-08 Thread FF
I'm copying and pasting a cropped image from one view to another and then erase it. The first copy and paste is OK, but on the consecutive pastings the image appears with crop marks and after erasing the small circles defining the cropping area remain. Is this a bug? Is there a work around?__