Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Graham Cox
> On 23 Aug 2016, at 1:46 AM, Andreas Falkenhahn wrote: > > It is unusual in the way that it's not calling NSApplicationMain() but tries > to imitate what NSApplicationMain() does. Here goes the code that is executed > to set up the NSApp: There’s your problem. You’re

Re: uitabbar translucency and hiding

2016-08-22 Thread Torsten Curdt
Hey Scott > Can you elaborate further on your use case and what problem you are trying > to solve? > > I would suggest you have found this difficult because a UITabBarController > does not sound like an appropriate UI element for your use case. Specially, > what you're describing is using a tab

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 17:55 Ken Thomases wrote: >>> Is this in the same app from your other thread >>> where you're trying to shoehorn Cocoa into a C-based program? Can >>> you reproduce the problem in a new, standard Cocoa app project? >> Yup, see above ;) > This is ambiguous. Was the "yup" to my

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Ken Thomases
On Aug 22, 2016, at 10:46 AM, Andreas Falkenhahn wrote: > > On 22.08.2016 at 17:30 Ken Thomases wrote: > >> On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn >> wrote: > >>> I've created an NSAlert dialog … > >>> it shows up correctly but

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 17:30 Ken Thomases wrote: > On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn > wrote: >> I've created an NSAlert dialog as described here: >>

Re: uitabbar translucency and hiding

2016-08-22 Thread Scott Ahten
> On Aug 20, 2016, at 7:29 PM, Torsten Curdt wrote: > > Now I would like to hide the UITabBar (on action). Hello, Torsten. Can you elaborate further on your use case and what problem you are trying to solve? I would suggest you have found this difficult because a

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Ken Thomases
On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn wrote: > > I've created an NSAlert dialog as described here: > https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Dialog/Tasks/UsingAlerts.html#//apple_ref/doc/uid/2871-129009-BCIFAAEJ > > > When I

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread じょいすじょん
> On 2016 Aug 22, at 23:04, Andreas Falkenhahn wrote: > > On 22.08.2016 at 15:49 dangerwillrobinsondan...@gmail.com wrote: > > >>> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn >>> wrote: > >>> Does anybody have an idea >>> what could

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Steve Mills
On Aug 22, 2016, at 09:04 AM, Andreas Falkenhahn wrote: You really think I didn't Google before asking? I certainly did, but so far I haven't found anything that could help me here. If you have anything more than just a Google search for "NSAlert 10.6", please

Re: Could not cast value of type 'Medication.Nurse' to 'MedicationTests.Nurse'

2016-08-22 Thread Devarshi Kulshreshtha
Found answer over here: https://forums.developer.apple.com/thread/11342 On Mon, Aug 22, 2016 at 2:41 PM, Devarshi Kulshreshtha < devarshi.bluec...@gmail.com> wrote: > I am making an app with name - "Medication", in which I am trying to > implement unit test cases for certain operations on my

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 15:49 dangerwillrobinsondan...@gmail.com wrote: >> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn >> wrote: >> Does anybody have an idea >> what could cause this behaviour on 10.6 and how I can fix this? > http://bfy.tw/7Kcc > there is a great

Re: NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread dangerwillrobinsondanger
> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn > wrote: > > Does anybody have an idea > what could cause this behaviour on 10.6 and how I can fix this? http://bfy.tw/7Kcc there is a great resource here. ___ Cocoa-dev

Re: Running apps compiled for newer OS X versions on older versions (rant)

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 13:34 Alastair Houghton wrote: >> On 22 Aug 2016, at 12:15, Andreas Falkenhahn wrote: >> Out of curiosity, I've just run a little test and compiled my app on the >> 10.11 system for the 10.11 target and tried to run it on the 10.6 system, >> just to see

NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Andreas Falkenhahn
I've created an NSAlert dialog as described here: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Dialog/Tasks/UsingAlerts.html#//apple_ref/doc/uid/2871-129009-BCIFAAEJ When I run it using [alert runModal]; it shows up correctly but pressing a button doesn't do

Re: Sprite Kit app won’t operate in foreground

2016-08-22 Thread Charles Jenkins
Kirk and Everyone: I learned that developers can call Apple with questions, so I called in about my theory that it is iOS that’s killing my app and the disastrous bug I’m hunting for doesn’t actually exist. The tech who took my call agreed: when you build an app using a free developer account,

Re: Running apps compiled for newer OS X versions on older versions (rant)

2016-08-22 Thread Alastair Houghton
> On 22 Aug 2016, at 12:15, Andreas Falkenhahn wrote: > > Out of curiosity, I've just run a little test and compiled my app on the > 10.11 system for the 10.11 target and tried to run it on the 10.6 system, > just to see what happens. All I got is a message "Illegal

Running apps compiled for newer OS X versions on older versions (rant)

2016-08-22 Thread Andreas Falkenhahn
I have two OS X systems: One running 10.6 and another one always running the latest version. I typically use the one running 10.6 for building my app and the latest one to see if everything is still working correctly. Out of curiosity, I've just run a little test and compiled my app on the 10.11

Re: NSResizableWindowMask for borderless windows

2016-08-22 Thread Andreas Falkenhahn
On 21.08.2016 at 20:07 Ken Thomases wrote: > You will need to build against the 10.7 SDK or later and, as noted > above, re-save any window NIBs on 10.7 or later. You can't build > against an SDK that's newer than the OS you're building on, so you > won't be able to do this on your 10.6 system

Re: GetNumEventsInQueue() for Cocoa

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 01:54 Graham Cox wrote: > Is it not possible to adapt this model to invoking [NSApp > nextEventMatchingMask:untilDate:inMode:dequeue]? Sure, it is, and I'm already using this right now. The problem in my specific case, however, is that my application is a scripting language. The

Could not cast value of type 'Medication.Nurse' to 'MedicationTests.Nurse'

2016-08-22 Thread Devarshi Kulshreshtha
I am making an app with name - "Medication", in which I am trying to implement unit test cases for certain operations on my managed objects. Here is my entity: Entity name: Nurse attribute 1: email attribute 2: password relationship: patient In model editor by default it is