test

2022-11-17 Thread David Young via Cocoa-dev
Testing, please disregard. Dave -- David Young dyo...@pobox.comUrbana, IL(217) 721-9981 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coco

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Robert Walsh via Cocoa-dev
>> Is it an https/http error? No, this is a simple tcp socket intended to send and receive plain text. >> Yes, you would create a new test target and add all the GUI stuff as a >> member of the test target... I have created a dummy GUI app, and I made the TcpClient

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Keary Suska via Cocoa-dev
Yes, you would create a new test target and add all the GUI stuff as a member of the test target. Of course, you will want to exclude them from other targets. You shouldn’t need to do any library linking since it is a common codebase. Simply include the classes and put the glue code in the App

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Alex Zavatone via Cocoa-dev
> >> On Dec 12, 2019, at 7:42 AM, Robert Walsh via Cocoa-dev >> wrote: >> >> I am writing a command line application in Objective-C that needs to make a >> TCP connection to a server. In a unit test for the TcpClient class I am >> writing, I have a

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Robert Walsh via Cocoa-dev
machine, not on localhost. I was able to make this connection without needing to grant any entitlements to the command line tool, so the problem occurs only when trying to run the unit test. In short, the unit test case is allowed to start a server and accept connections (from telnet, for example

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Keary Suska via Cocoa-dev
I would first test to see if you can access networking at all—i.e. connect to a public HTTP server and see if it works. If it doesn’t, then you are probably running against the entitlements issue. I suspect that the “dummy target” indicated is simply a GUI app wrapper built just for testing but

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Robert Walsh via Cocoa-dev
tps://forums.developer.apple.com/thread/52211> Yes, you can add the unit testing bundle, but it won't let you set Target to be Tested.. Right. That’s because the machinery to load your test bundle within a process only works if the process is based on a GUI framework (like Cocoa or

Re: Permission Denied trying to connect to localhost in unit test

2019-12-12 Thread Jens Alfke via Cocoa-dev
> On Dec 12, 2019, at 7:42 AM, Robert Walsh via Cocoa-dev > wrote: > > I am writing a command line application in Objective-C that needs to make a > TCP connection to a server. In a unit test for the TcpClient class I am > writing, I have a simple TCP server that listens

Permission Denied trying to connect to localhost in unit test

2019-12-12 Thread Robert Walsh via Cocoa-dev
I am writing a command line application in Objective-C that needs to make a TCP connection to a server. In a unit test for the TcpClient class I am writing, I have a simple TCP server that listens for connections in a thread. When I try to connect to this socket from the client socket class

In-House Distribution for Alpha Test

2017-08-16 Thread Yun Zeng
Hi all, I am going to take a alpha test for my new app. Is it legal if I distribute my app to my client var in-house distribution? Thanks a lot -- Zeng Yun iOS Engineer Email/QQ: zengyun.program...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: iOS "library" unit test of iOS code?

2017-04-24 Thread Rick Mann
Also, in this case, it can be a macOS thing; the code should run equally well, assuming the dylib I depend on can load (it might've been built against the iOS SDK). > On Apr 24, 2017, at 15:48 , Jens Alfke wrote: > > >> On Apr 24, 2017, at 3:38 PM, Rick Mann wrote: >&

Re: iOS "library" unit test of iOS code?

2017-04-24 Thread Rick Mann
> On Apr 24, 2017, at 15:48 , Jens Alfke wrote: > > >> On Apr 24, 2017, at 3:38 PM, Rick Mann wrote: >> >> I'm trying to test some code that's entirely stand-alone from my app, and in >> fact I'm having trouble testing it within my app bec

Re: iOS "library" unit test of iOS code?

2017-04-24 Thread Jens Alfke
> On Apr 24, 2017, at 3:38 PM, Rick Mann wrote: > > I'm trying to test some code that's entirely stand-alone from my app, and in > fact I'm having trouble testing it within my app because the app does some > things that interfere. > > So, I tried creat

iOS "library" unit test of iOS code?

2017-04-24 Thread Rick Mann
I'm trying to test some code that's entirely stand-alone from my app, and in fact I'm having trouble testing it within my app because the app does some things that interfere. So, I tried creating a new test target and specifying "None" for the Test Host, then adding th

Re: EXC_BAD_ACCESS puzzle when not running as test bundle

2015-11-02 Thread Jonathan Mitchell
y when built on 10.11. > I have set up a simple test scenario and it boils down to the following. > If I execute the same 4 line test code as part of a unit test bundle it works > fine. > If I try and execute the exact same code as part of a foundation tool then it > crashes with EXC_BA

EXC_BAD_ACCESS puzzle when not running as test bundle

2015-11-02 Thread Jonathan Mitchell
This has me puzzled. I have some code that is giving trouble only when built on 10.11. I have set up a simple test scenario and it boils down to the following. If I execute the same 4 line test code as part of a unit test bundle it works fine. If I try and execute the exact same code as part of

Re: Copy test docs to Simulator App's Documents folder?

2015-05-25 Thread Michael David Crawford
I'm still trying to load the simulator with some sample files for my app's Documents folder. I'm able to put documents in the Documents folder for my app on my iPad. I can use the Devices window to copy my .xcappdata folder to my project heirarchy. I can select it to be added to my simulated app

Re: Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread Michael Crawford
(David Brittain sent me his AppDataInfo.plist.) That gets me part of the way there but now I get the message "Application Data package not copied to the Simulator" because it doesn't have a data folder, along with the promise to copy it the _next_ time it is run, however that doesn't happen. Goog

Re: Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread Michael Crawford
Thanks David. It looks like the .xcappdata format should be quite simple, provided I can find out what the AppDataInfo.plist should look like. I haven't paid the Apple Tax for this year, and won't be able to until I get a job, and won't be able to get a job until I ship my iOS App. Therefore I ca

Re: Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread David Brittain
t a device, then select your app, and then clicking the settings > icon and selecting "Download Container"). Once downloaded it is pretty > easy to open up the bundle and change the files that matter. > > Dave > > On Mon, Apr 20, 2015 at 7:08 PM, Michael Crawford >

Re: Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread David Brittain
Crawford wrote: > I have a few test documents that I need to have copied to my App's > Documents folder whenever I build it. This is now problematic as it > seems the app gets put into a different place each time it is built. > > I tried using a Build Phase for each but it does

Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread Michael Crawford
I have a few test documents that I need to have copied to my App's Documents folder whenever I build it. This is now problematic as it seems the app gets put into a different place each time it is built. I tried using a Build Phase for each but it doesn't put them into the Documents

Re: title bar hit test?

2014-06-16 Thread Uli Kusterer
On 15 Jun 2014, at 13:27, Cosmin Apreutesei wrote: > I want to have edge snapping on my windows. Just for moving, or also for resizing? If only for moving, you don't need to do anything special to detect resizing. The OS will catch all resize clicks and not send them to your views, so just impl

Re: title bar hit test?

2014-06-15 Thread Kyle Sluder
On Sun, Jun 15, 2014, at 02:17 PM, Lee Ann Rucker wrote: > Why do you want to change the position? It's not something Mac windows > normally do so users will be confused, and you've also got OSX itself > with its own ideas of where windows should go, especially when it adds > something like Maveric

Re: title bar hit test?

2014-06-15 Thread Lee Ann Rucker
Kusterer" , "Cocoa Cocoa-Dev" Sent: Sunday, June 15, 2014 1:54:08 PM Subject: Re: title bar hit test? > I have edge snapping too. Try: > > windowWillResize:toSize: > Return Value > A custom size to which the specified window will be resized. > > It's c

Re: title bar hit test?

2014-06-15 Thread Cosmin Apreutesei
> I have edge snapping too. Try: > > windowWillResize:toSize: > Return Value > A custom size to which the specified window will be resized. > > It's called before every size change, including during live resizing. Thanks, that's good for resizing. There's still a problem with the moving. _

Re: title bar hit test?

2014-06-15 Thread Lee Ann Rucker
r" Cc: "Cocoa Cocoa-Dev" Sent: Sunday, June 15, 2014 4:27:54 AM Subject: Re: title bar hit test? > Can I ask why you’re trying to do this? This sounds like something that’s so > unusual to do that I suspect you’re trying to use an overly complicated > approach to achieve s

Re: title bar hit test?

2014-06-15 Thread Cosmin Apreutesei
> Can I ask why you’re trying to do this? This sounds like something that’s so > unusual to do that I suspect you’re trying to use an overly complicated > approach to achieve something that is really simple in Cocoa. And what > exactly do you mean by “synchronous window moving event”? I want t

Re: title bar hit test?

2014-06-14 Thread Uli Kusterer
On 15 Jun 2014, at 00:46, Cosmin Apreutesei wrote: > How can I hit-test the title bar rectangle without the resizing > corners and edges? There’s no official API to do this that I’m aware of. > (I need this so I can implement synchronous window moving events). Can I ask why you’re

title bar hit test?

2014-06-14 Thread Cosmin Apreutesei
Hi, How can I hit-test the title bar rectangle without the resizing corners and edges? (I need this so I can implement synchronous window moving events). Thanks. PS: Empirically, the edges are 3px wide on OSX 10.9 and the corners are 4px, but I'd rather not hardcode

Re: Running an NSApplication from a test case

2014-03-05 Thread jonat...@mugginsoft.com
On 4 Mar 2014, at 21:27, Daniel Luis dos Santos wrote: > Hello all, > > I have a test case where I would like to launch a UI. I have a NIB with a > window that I load through code in the test case. Here goes the code : > > - (void)testExample > { > NSArra

Running an NSApplication from a test case

2014-03-04 Thread Daniel Luis dos Santos
Hello all, I have a test case where I would like to launch a UI. I have a NIB with a window that I load through code in the test case. Here goes the code : - (void)testExample { NSArray* topLevelWidgets = nil; NSBundle* theBundle = [NSBundle bundleForClass:[self class

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Jean-Daniel Dupas
Le 15 oct. 2013 à 18:50, Jens Alfke a écrit : > > On Oct 15, 2013, at 9:10 AM, Bill Cheeseman wrote: > >> I can't talk about the "why?" part of my question in public because it's an >> issue unique to Mavericks. Let me just say that a certain common category of >> applications is going to w

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Simone Tellini
Il giorno 15/ott/2013, alle ore 18:10, Bill Cheeseman ha scritto: > But the "is it running in Xcode (or Instruments or whatever)?" question is > not unique to Mavericks. What I find interesting is that NSWorkspace's > -frontmostApplication and -menuBarOwningApplication and > NSRunningApplica

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Jens Alfke
On Oct 15, 2013, at 9:10 AM, Bill Cheeseman wrote: > I can't talk about the "why?" part of my question in public because it's an > issue unique to Mavericks. Let me just say that a certain common category of > applications is going to want to know how to do this in Mavericks, for good > and s

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Bill Cheeseman
On Oct 15, 2013, at 10:48 AM, Jens Alfke wrote: > > On Oct 15, 2013, at 4:12 AM, Bill Cheeseman wrote: > >> Is there any way to test whether an application is running in Xcode or some >> other compiler/debugger, and not as a free-standing application? And then to &

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Jens Alfke
On Oct 15, 2013, at 4:12 AM, Bill Cheeseman wrote: > Is there any way to test whether an application is running in Xcode or some > other compiler/debugger, and not as a free-standing application? And then to > get the name of the compiler/debugger? Just curious: What is it you w

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Half Activist
> From: Bill Cheeseman > To: Cocoa-Dev Cocoa-Dev Mail > Subject: How test whether Mac app is running in Xcode? > > > Is there any way to test whether an application is running in Xcode or some > other compiler/debugger, and not as a free-standing application? And then

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Daniel Höpfl
On 2013-10-15 13:12, Bill Cheeseman wrote: Is there any way to test whether an application is running in Xcode or some other compiler/debugger, and not as a free-standing application? And then to get the name of the compiler/debugger? I'm currently testing #ifdef DEBUG and simply assuming

How test whether Mac app is running in Xcode?

2013-10-15 Thread Bill Cheeseman
Is there any way to test whether an application is running in Xcode or some other compiler/debugger, and not as a free-standing application? And then to get the name of the compiler/debugger? I'm currently testing #ifdef DEBUG and simply assuming that Xcode is the only compiler/deb

Mail server test

2012-04-24 Thread tridiak
Mail server test ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https

Re: test on device using company registration

2011-09-07 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/7/11 2:37 PM, Wilker wrote: > Hi guys, > > Today my company create a company account for iOS in order to test > our product on device. They add me as an company developer using > iTunes Connect. > > But I can't find h

test on device using company registration

2011-09-07 Thread Wilker
Hi guys, Today my company create a company account for iOS in order to test our product on device. They add me as an company developer using iTunes Connect. But I can't find how I create an certificate to me in order so I can test the product on device. I searched on internet but found no

Re: getting path for files in test bundle

2011-07-14 Thread Wilker
fixture > > files (video files), I added them to a group Fixtures on Test target, > they > > are also already on Copy Resources Bundle phase, but I can't get the path > > for them... I'm trying with: > > > > NSString *dexterPath = [[NSBundle mainBundle]

Re: getting path for files in test bundle

2011-07-14 Thread Fritz Anderson
On 14 Jul 2011, at 2:11 AM, Wilker wrote: > I'm trying to do some tests here, but in case my tests have some fixture > files (video files), I added them to a group Fixtures on Test target, they > are also already on Copy Resources Bundle phase, but I can't get the path >

getting path for files in test bundle

2011-07-14 Thread Wilker
Hi, I'm trying to do some tests here, but in case my tests have some fixture files (video files), I added them to a group Fixtures on Test target, they are also already on Copy Resources Bundle phase, but I can't get the path for them... I'm trying with: NSString *dexterPa

How To Fully Test Cleanup Code Paths (iOS)?

2011-07-01 Thread Jeffrey Walton
-dealloc. From the docs, testing, and previous posts regarding lifecycle messages, the best I can seem to do is -applicationDidEnterBackground and SIGKILL (and didReceiveMemoryWarning under the simulator). How does one test the code that performs cleanup and deal

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread David Duncan
On Jun 2, 2011, at 11:16 AM, Nathan Sims wrote: > On Jun 2, 2011, at 10:36 AM, David Duncan wrote: > >> On Jun 2, 2011, at 10:31 AM, Jim Adams wrote: >> >>> Why? Because the timeout was inordinately long with no way to shorten it >>> other than create my own timeout. Users want responsiveness.

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Nathan Sims
On Jun 2, 2011, at 10:36 AM, David Duncan wrote: > On Jun 2, 2011, at 10:31 AM, Jim Adams wrote: > >> Why? Because the timeout was inordinately long with no way to shorten it >> other than create my own timeout. Users want responsiveness. One of the >> things I hate more than anything is when a

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Hank Heijink (Mailinglists)
two requests, so preflighting the request is just a waste of a connection. > -Original Message- > From: David Duncan [mailto:david.dun...@apple.com] > Sent: Thursday, June 02, 2011 1:37 PM > To: Jim Adams > Cc: cocoa-dev > Subject: Re: What is the point of a host-reachabi

RE: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Jim Adams
point of a host-reachability test that doesn't test the reachability of the host? On Jun 2, 2011, at 10:31 AM, Jim Adams wrote: > Why? Because the timeout was inordinately long with no way to shorten it > other than create my own timeout. Users want responsiveness. One of the >

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread David Duncan
On Jun 2, 2011, at 10:31 AM, Jim Adams wrote: > Why? Because the timeout was inordinately long with no way to shorten it > other than create my own timeout. Users want responsiveness. One of the > things I hate more than anything is when an app won't start because it can't > contact its host. I

RE: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Jim Adams
st but the response is really slow. -Original Message- From: Kyle Sluder [mailto:kyle.slu...@gmail.com] Sent: Thursday, June 02, 2011 11:17 AM To: Jim Adams Cc: Greg Parker; G S; cocoa-dev Subject: Re: What is the point of a host-reachability test that doesn't test the reachability of the

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Sherm Pendley
On Thu, Jun 2, 2011 at 11:16 AM, Kyle Sluder wrote: > > Why does everyone insist on using roundabout ways to detect if maybe a host > will accept connections on a completely unrelated port ... when it may not even accept *those* on the next attempt. Can you say "race condition?" I knew you could

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Kyle Sluder
On Jun 2, 2011, at 6:04 AM, Jim Adams wrote: > In a recent app I wrote I used the Reachability API but then when attempting > to log on to my host I pinged 5 tries at the same time as attempting to log > on. My thinking was that I could either wait the very long time for the logon > attempt to

RE: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Jim Adams
host-reachability test that doesn't test the reachability of the host? On Jun 1, 2011, at 5:34 PM, G S wrote: > Thanks for the response, Greg. > >> There are circumstances where a subset of the Internet's hosts may be >> reachable. For example, you may be able to reach l

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread Steve Mykytyn
Just to add another two cents on the unreliability of pings for determining reachability, if you are using the wi-fi service in certain airports, cafes, etc. some wi-fi providers will respond to a ping of anything, so it will appear you can reach any host, when in fact you can't reach anything exce

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread Greg Parker
u may be able to reach a host behind a VPN >> only when the VPN is active. (I don't know what Reachability actually does >> in these cases, but it's the sort of thing that the API was designed to >> handle.) > > But since this test doesn't actually check the

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread John Joyce
On Jun 1, 2011, at 7:52 PM, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 6/1/11 5:34 PM, G S wrote: >> But since this test doesn't actually check the routes to these >> hosts, how would it be able to provide meaningful results even

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/1/11 5:34 PM, G S wrote: > But since this test doesn't actually check the routes to these > hosts, how would it be able to provide meaningful results even in > these cases? Note: I am _not_ an SCNetworkReachability guru, so take t

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread John Joyce
VPN >> only when the VPN is active. (I don't know what Reachability actually does >> in these cases, but it's the sort of thing that the API was designed to >> handle.) > > But since this test doesn't actually check the routes to these hosts, > how would

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread G S
VPN is active. (I don't know what Reachability actually does in > these cases, but it's the sort of thing that the API was designed to handle.) But since this test doesn't actually check the routes to these hosts, how would it be able to provide meaningful results even in these

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread Greg Parker
On Jun 1, 2011, at 5:13 PM, G S wrote: > I'm trying to implement some robust network-failure handling in my > iPhone app. The test of whether my host is reachable returns YES even > when connected to a router that has no Internet connection. Apple's > docs say, "

What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread G S
Hi all. I'm trying to implement some robust network-failure handling in my iPhone app. The test of whether my host is reachable returns YES even when connected to a router that has no Internet connection. Apple's docs say, "A remote host is considered reachable when a data pac

Re: Test for TCP port

2011-04-09 Thread René v Amerongen
t; > Thanks, > Charles > > > > On Apr 8, 2011, at 5:17 PM, Dave Carrigan wrote: > >> >> On Apr 8, 2011, at 3:26 PM, Heizer, Charles wrote: >> >>> What is the best way to test to see if a TCP port is reachable and will >>> answer connection

Re: Test for TCP port

2011-04-08 Thread Heizer, Charles
Thanks, This is what I kind of suspected. Are there any wrappers around bsd socket to make it easier? Thanks, Charles On Apr 8, 2011, at 5:17 PM, Dave Carrigan wrote: > > On Apr 8, 2011, at 3:26 PM, Heizer, Charles wrote: > >> What is the best way to test to see if a TCP po

Re: Test for TCP port

2011-04-08 Thread Dave Carrigan
On Apr 8, 2011, at 3:26 PM, Heizer, Charles wrote: > What is the best way to test to see if a TCP port is reachable and will > answer connections? I was trying to use NSSocketPort and NSConnection but I'm > not getting a valid connection. You have to connect to it. Unfortun

Re: Test for TCP port

2011-04-08 Thread Sherm Pendley
On Fri, Apr 8, 2011 at 6:26 PM, Heizer, Charles wrote: > > What is the best way to test to see if a TCP port is reachable and will > answer connections? I was trying to use NSSocketPort and NSConnection but I'm > not getting a valid connection. > > NSSocketPort *sendPort

Re: Test for TCP port

2011-04-08 Thread Kyle Sluder
On Fri, Apr 8, 2011 at 3:26 PM, Heizer, Charles wrote: > What is the best way to test to see if a TCP port is reachable and will > answer connections? I was trying to use NSSocketPort and NSConnection but I'm > not getting a valid connection. The *only* way to correctly determine

Test for TCP port

2011-04-08 Thread Heizer, Charles
Hello, What is the best way to test to see if a TCP port is reachable and will answer connections? I was trying to use NSSocketPort and NSConnection but I'm not getting a valid connection. Thanks, Charles NSSocketPort *sendPort = [[NSSocketPort alloc] initRemoteWithTCPPort:3600

Re: NSOperation with unit test

2011-03-22 Thread Heath Borders
Your NSOperation is probably running on a background thread managed by the NSOperationQueue. Your test needs to wait until the NSOperationQueue has processed all its tasks. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Mar 22, 2011 at 10

NSOperation with unit test

2011-03-22 Thread Shane
Hi, I am trying to write a unit test for a class that inherits from NSOperation. And I've implemented this class just as I did in my application (which works) and the test case is running, but when the 'addOperation:myClass' on the NSOperationQueue is called within the test meth

Re: unit test exit's abnormally with code 5

2010-11-25 Thread Bertrand Landry-Hetu
I had something similar the other day: the release configuration worked but the debug configuration would get that same NSTask error 22. I did a test app that would load the unit test bundle to get more details on the failure. I got a "malformed rebase opcodes (331/664)" error, whic

Re: unit test exit's abnormally with code 5

2010-11-23 Thread Shane
C_DISABLE_GC > # Run the unit tests in this test bundle. > "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" > --- > > But when I build my unit test, I am not seeing the environment > variable listed in the output of the "Run custom shell script 'Run > Script'&qu

Re: unit test exit's abnormally with code 5

2010-11-22 Thread Shane
ing to the output below … seems my OBJC_DISABLE_GC is set. I have a Run Script in the Run Script build phase that looks like this … --- OBJC_DISABLE_GC=YES export OBJC_DISABLE_GC # Run the unit tests in this test bundle. "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" --- But when I build my

Re: unit test exit's abnormally with code 5

2010-11-20 Thread Shane
I thought that too, but I've checked this. I have my app proj which depends on a dylib project that I link against, and both of them and the unit test in the app project are built with GCC_ENABLE_OBJC_GC as 'unsupported'. So AFAIK, everything is non-GC. Is this not correct? On Fr

Re: unit test exit's abnormally with code 5

2010-11-19 Thread Chris Hanson
I suspect what’s going on is that your unit tests are built non-GC, but the framework you’re linking against is GC-only. You’ll need to enable GC for your unit tests too, if you want to test a GC-only framework; Objective-C garbage collection is on a per-process not per-binary basis

Re: unit test exit's abnormally with code 5

2010-11-19 Thread Shane
e-C garbage collection for the test rig, run it in an > environment without the OBJC_DISABLE_GC environment variable. > And/or make sure your test is compiled fat (especially x86_64) > corbin > > > On Nov 18, 2010, at 6:50 PM, Shane wrote: > > Shameless bump. Anyone have ideas on th

Re: unit test exit's abnormally with code 5

2010-11-19 Thread Corbin Dunn
Um, how about : To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable. And/or make sure your test is compiled fat (especially x86_64) corbin On Nov 18, 2010, at 6:50 PM, Shane wrote: > Shameless bump. Anyone h

Re: unit test exit's abnormally with code 5

2010-11-18 Thread Shane
Shameless bump. Anyone have ideas on this thread? On Sun, Nov 14, 2010 at 4:33 PM, Shane wrote: > I'm trying to put a unit test together, so I've created a new target, > added my files to compile and frameworks to link to, then commented > out all of my code to where I

unit test exit's abnormally with code 5

2010-11-14 Thread Shane
I'm trying to put a unit test together, so I've created a new target, added my files to compile and frameworks to link to, then commented out all of my code to where I have an empty setUp, tearDown, and testFunc, but still getting the following error. /Developer/Tools/RunPlatformUnitTes

How we can simulate a USB/Wifi connection (between iPad and Mac) on iPhone simulator to test my app being shown as file sharing apps in iTune

2010-11-12 Thread Gaurav Sharma
*When an iPad is connected to another Mac (through USB/Wifi), iTune application comes in picture and lists all the file sharing app. I am trying to create file sharing application for iOS. I am unable to figure out how we can simulate this USB/Wifi connection on iPhone simulator to test my app

Re: Test for launched from (Apple)Script?

2010-11-10 Thread vinai
--- On Wed, 11/10/10, McLaughlin, Michael P. wrote: > Jonathan wrote: > >>> On 10 Nov 2010, at 18:34, McLaughlin, Michael P. wrote: >>> >>> Is there any standard way for a Cocoa app to test whether it was >>> launched from a script, esp. AppleScript? 

Re: Test for launched from (Apple)Script?

2010-11-10 Thread Matt Neuburg
On Wed, 10 Nov 2010 13:34:09 -0500, "McLaughlin, Michael P." said: >Is there any standard way for a Cocoa app to test whether it was launched >from a script, esp. AppleScript? All apps are launched the same way - by sending them an oapp Apple event (or similar). It doesn

Re: Test for launched from (Apple)Script?

2010-11-10 Thread jonat...@mugginsoft.com
On 10 Nov 2010, at 18:34, McLaughlin, Michael P. wrote: > Is there any standard way for a Cocoa app to test whether it was launched > from a script, esp. AppleScript? I would like to set a flag to disable > dialogs so that users could run the app in (faceless) batch mode. &g

Test for launched from (Apple)Script?

2010-11-10 Thread McLaughlin, Michael P.
Is there any standard way for a Cocoa app to test whether it was launched from a script, esp. AppleScript? I would like to set a flag to disable dialogs so that users could run the app in (faceless) batch mode. Thanks. -- Mike McLaughlin ___ Cocoa

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-04 Thread Kyle Sluder
On Mon, Oct 4, 2010 at 11:11 AM, Greg Parker wrote: > On Oct 2, 2010, at 6:54 PM, Kyle Sluder wrote: > > Maybe weak linking can help here. If you weak link the Python library and > call dlopen early on in your program's lifetime with the appropriate path, I > think dyld will populate all the weak

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-04 Thread Greg Parker
On Oct 2, 2010, at 6:54 PM, Kyle Sluder wrote: > Maybe weak linking can help here. If you weak link the Python library and > call dlopen early on in your program's lifetime with the appropriate path, I > think dyld will populate all the weak linked functions it finds. No, weak linking doesn't do

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
On 3. Oct 2010, at 3:54, Kyle Sluder wrote: > On Oct 2, 2010, at 3:10 AM, Kurt Sutter wrote: > >> Sorry to be obtuse, but it may be that I am overlooking something. >> Presently, we have calls such as >> >> n = PyNumber_Float(obj) >> s = PyString_AsString(obj) >> >> I understand that I would

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kyle Sluder
On Oct 2, 2010, at 3:10 AM, Kurt Sutter wrote: > Sorry to be obtuse, but it may be that I am overlooking something. Presently, > we have calls such as > > n = PyNumber_Float(obj) > s = PyString_AsString(obj) > > I understand that I would need to generate #defines for all those names, such > a

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Gwynne Raskind
On Oct 2, 2010, at 7:20 AM, Ken Thomases wrote: >> Sorry to be obtuse, but it may be that I am overlooking something. >> Presently, we have calls such as >> >> n = PyNumber_Float(obj) >> s = PyString_AsString(obj) >> >> I understand that I would need to generate #defines for all those names, >>

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Ken Thomases
On Oct 2, 2010, at 5:10 AM, Kurt Sutter wrote: > Sorry to be obtuse, but it may be that I am overlooking something. Presently, > we have calls such as > > n = PyNumber_Float(obj) > s = PyString_AsString(obj) > > I understand that I would need to generate #defines for all those names, such > as

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
On 2 Oct 2010, at 11:07, Ken Thomases wrote: > On Oct 2, 2010, at 3:48 AM, Kurt Sutter wrote: > >> Yes, that is an option I have considered. But, if I understand this >> correctly, it would mean resolving some hundred symbols through dlsym and >> providing a glue function for each of them. Rig

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Ken Thomases
On Oct 2, 2010, at 3:48 AM, Kurt Sutter wrote: > Yes, that is an option I have considered. But, if I understand this > correctly, it would mean resolving some hundred symbols through dlsym and > providing a glue function for each of them. Right? I don't see the need for a glue function. You do

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
Ken Yes, that is an option I have considered. But, if I understand this correctly, it would mean resolving some hundred symbols through dlsym and providing a glue function for each of them. Right? (One other option I have just discovered is to place a symlink file in ~/lib, which seems to be i

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Ken Thomases
On Oct 1, 2010, at 11:49 PM, Kurt Sutter wrote: > In our application, the user should be able to change the version of a > library that the application is linked to. Don't link to the library/framework. Dynamically load it (dlopen, dlsym, etc.), instead. Granted, this is a pain in the neck co

info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-01 Thread Kurt Sutter
In our application, the user should be able to change the version of a library that the application is linked to. Specifically, our application links to the Python library. However, some users want to use the Python at /System/Library/Frameworks/Python.framework/Versions/2.6, while others may wa

Re: [moderator] Re: This is a test

2010-08-26 Thread koko
My humble apologies. Sometimes I get outside of my mind. -koko On Aug 26, 2010, at 9:36 PM, Scott Anguish wrote: Posting test messages to a list of 8000+ members isn’t appropriate. Please contact the admins if you feel you’ve been removed or received such a message. On Aug 26, 2010, at

[moderator] Re: This is a test

2010-08-26 Thread Scott Anguish
Posting test messages to a list of 8000+ members isn’t appropriate. Please contact the admins if you feel you’ve been removed or received such a message. On Aug 26, 2010, at 10:43 PM, k...@highrolls.net wrote: > I was notified that I requested to be removed from the list. I did not. I

This is a test

2010-08-26 Thread koko
I was notified that I requested to be removed from the list. I did not. I am testing my ability to communicate. -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

  1   2   3   >