Re: Thousands of leaked CGContext ?

2015-04-20 Thread Eric Matecki
Hi, CGDataProviderRef provider = CGDataProviderCreateDirect( &mps, sizeof(mps), &callbacks ); NSWindow* window = (NSWindow*)Window(); What does this line do? It's just a global function which returns the (only) window. For crossplatform compatibility reasons (our app runs on MacO

Re: UIAlertView has zero bounds

2015-04-20 Thread Roland King
> > I wrote a separate app with just one button that brings up a > UIAlertView. In the production code I create a UITextField then > center it in the UIAlertView. > > - (void) willPresentAlertView: (UIAlertView *) alertView > { >CGRect bounds = alertView.bounds; >NSLog( @"%f %f", bounds

Re: Thousands of leaked CGContext ?

2015-04-20 Thread Uli Kusterer
On 20 Apr 2015, at 09:05, Eric Matecki wrote: >>>CGDataProviderRef provider = CGDataProviderCreateDirect( &mps, >>> sizeof(mps), &callbacks ); >>> >>>NSWindow* window = (NSWindow*)Window(); >> >> What does this line do? > > It's just a global function which returns the (only) window.

Re: UIAlertView has zero bounds

2015-04-20 Thread Kyle Sluder
On Mon, Apr 20, 2015, at 05:54 AM, Roland King wrote: > 2) "The view hierarchy for this class is private and must not be > modified”. In the strictest sense adding a UITextField to the UIAlertView > is modifying the view hierarchy and thus something which you probably > shouldn’t be doing. What R

Re: Thousands of leaked CGContext ?

2015-04-20 Thread David Duncan
> On Apr 20, 2015, at 12:05 AM, Eric Matecki wrote: > > Hi, > >>>CGDataProviderRef provider = CGDataProviderCreateDirect( &mps, >>> sizeof(mps), &callbacks ); >>> >>>NSWindow* window = (NSWindow*)Window(); >> >> What does this line do? > > It's just a global function which returns

NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Dave
Hi All, Is the Cocoa Standard Alert Sheet available anywhere in a NIB or failing that is there a list of the fields and their Frame Rectangles anywhere? I’m sure it’s there somewhere, I’ve been doing google searches but I can’t think of the right thing to search for! Thanks a lot All the Best

Re: NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Conrad Shultz
> On Apr 20, 2015, at 11:12 AM, Dave wrote: > > Hi All, > > Is the Cocoa Standard Alert Sheet available anywhere in a NIB or failing that > is there a list of the fields and their Frame Rectangles anywhere? > > I’m sure it’s there somewhere, I’ve been doing google searches but I can’t > thin

Re: NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Dave
Display a View within a Window that looks exactly like a sheet, but I don’t want any of the button presses etc - don’t ask — it’s for a demo! lol Cheers Dave > On 20 Apr 2015, at 19:42, Conrad Shultz wrote: > > >> On Apr 20, 2015, at 11:12 AM, Dave wrote: >> >> Hi All, >> >> Is the Cocoa

Re: NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Ryan Dignard
You could create an UIAlertSheet show it and all that, then call recursiveDescription on the sheet which will tell you the description of all the views it has. You should be able to assemble a similar looking view with that info. On Mon, Apr 20, 2015 at 11:51 AM, Dave wrote: > Display a View wi

RE: NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Lee Ann Rucker
It's a very simple layout, you could make your own. Use the Xcode 6 layout debugger option to see where all the parts end up. I'm pretty sure it's all generated in code, actually, since it's older than autolayout and the variable number of buttons, with the spacing changing depending on how man

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 20, 2015 at 9:02 AM, Kyle Sluder wrote: > Why are you doing this? Honestly I don't remember. This

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
I'm cool to implement this some other way, however UIAlertController was introduced in iOS 8. I'd like to support earlier devices if I can. What I'm trying to accomplish is to prompt for a file name, accept an editable text string and have OK and Canccel buttons. Can you suggest ways to do that

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
The method for iOS 5 and later on this page looks good: http://stackoverflow.com/questions/7015842/how-to-prompt-user-for-text-input-in-alert-view UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Password" message:@"Enter your password:" delegate:self cancelButtonTitle:@"Cancel" othe

Re: UIAlertView has zero bounds

2015-04-20 Thread Kyle Sluder
On Mon, Apr 20, 2015, at 05:59 PM, Michael Crawford wrote: > The method for iOS 5 and later on this page looks good: Please stop reaching in to the UIAlertView hierarchy. As has been documented forever, this is not supported. --Kyle Sluder ___ Cocoa-de

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
Is there a way to prompt for a text string? Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 20, 2015 at 4:12 PM, Kyle Sluder wrote: > On Mon, Apr 2

Re: UIAlertView has zero bounds

2015-04-20 Thread M Pulis
Sure... BYOV - build your own view: Create a custom UIViewController, pop in a UITextField and a couple of buttons. Works on all versions, done in under an hour max Good Luck! Gary ...working in a code mind... On Apr 20, 2015, at 4:18 PM, Michael Crawford wrote: Is there a way to pro

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 folder. I do

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

2015-04-20 Thread David Brittain
One way to do this is through the Application Data setting on a scheme... In the scheme, if you go to the Options tab for Run, you can choose "Application Data" and select any xcappdata file that is in your project. I find the easiest way to generate these is by downloading the container of your ap

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

2015-04-20 Thread David Brittain
For the simulator specifically a great app is: http://simpholders.com Which gives fast access to the most recently used app container folders in the simulator. Dave On Mon, Apr 20, 2015 at 7:38 PM, David Brittain wrote: > One way to do this is through the Application Data setting on a > scheme

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 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

How to drag a subview onto a parent view in IB?

2015-04-20 Thread Michael Crawford
Forgive me if this is a really dumb question, I haven't tried to do this in eons. I added a .xib to my existing project; it doesn't use a storyboard. The iPhone .xibs are mostly done but I realized that a couple are missing for the iPad. I click on the .xib in the list to the left, then I get a b

Re: How to drag a subview onto a parent view in IB?

2015-04-20 Thread Michael Crawford
Above the library list are four icons - a document icon, a pair of curly braces, a circle with a small square in the middle, and the icon for the media library. I had the document icon when I searched for "View". I expect the item that came up should have said "ViewController"; that is I was tryi