Re: Why so many public properties all up in my grizzle?

2012-03-21 Thread Sebastian Celis
On Mon, Mar 19, 2012 at 2:27 PM, Brian Lambert wrote: > Is there a way to declare ivars in the .M file AND have them accessible > from Objective-C Category files for the class? I will tell you how we handle public, private, and protected ivars and properties. The route we decided to take was influ

Re: Device/Resolution independent positioning of GUI items on iOS

2012-03-21 Thread Sebastian Celis
On Mon, Mar 19, 2012 at 2:59 PM, Alex Zavatone wrote: > In the current project that I'm tasked to repair from the previous two > programmers, I've come across a load of UI elements that have been hardcoded > in place with the approach of: Just define the CGRect and we're all good. > > Nothing is

Installing & running Xcode

2012-03-21 Thread Bill Meng
I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After installing Xcode and running it, clicking on New Project, selecting 'Foundation Tool', giving it a name and clicking Finish I get the following message Internal Error Uncaught Exception: *** -[PBXToolbar _notificationPostingE

Delaying Between applicationWillResignActive and applicationDidEnterBackground

2012-03-21 Thread Brian Barnes
I'm facing a real puzzle that might have an easy answer. I've ported my game development software dim3 to iOS. Works fine, but I'm having a problem with the application moving to the background. My problem is twice as complex because I'm trying to figure out what changes might be required in

Re: Delaying Between applicationWillResignActive and applicationDidEnterBackground

2012-03-21 Thread Rhythmic Fistman
On 21 March 2012 05:25, Brian Barnes wrote: > I'm facing a real puzzle that might have an easy answer.  I've ported my game > development software dim3 to iOS.  Works fine, but I'm having a problem with > the application moving to the background.  My problem is twice as complex > because I'm tr

Re: Odd initial save behavior with bundle based NSDocument

2012-03-21 Thread Mike Abdullah
It sounds to me like your writeToURL… method isn't writing out the entire document's contents. Can you show us some code? Note that for document packages, using NSFileWrapper often makes your implementation a lot easier. Sent from my iPad On 20 Mar 2012, at 07:53 PM, Neil Clayton wrote: > Hi

Re: Installing & running Xcode

2012-03-21 Thread Alex Zavatone
What's your goal in using 1.0? Is there any way you can use a newer OS or Xcode? On Mar 19, 2012, at 7:52 PM, Bill Meng wrote: > > I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After installing > Xcode and running it, clicking on New Project, selecting 'Foundation Tool', > giving i

Re: Installing & running Xcode

2012-03-21 Thread Nick Zitzmann
On Mar 19, 2012, at 5:52 PM, Bill Meng wrote: > I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After installing > Xcode and running it, clicking on New Project, selecting 'Foundation Tool', > giving it a name and clicking Finish I get the following message Stop right there; Xcode 1.

Re: Missing header files/folders?

2012-03-21 Thread Jens Alfke
On Mar 20, 2012, at 11:15 PM, Shane Stanley wrote: > Thanks, Jens. Seems odd that .bridgesupport files are now in one place and > headers are in another. Hm, good point. I'm not an expert on the bridging architecture. You may want to ask on xcode-users to get a more authoritative answer about

Re: Missing header files/folders?

2012-03-21 Thread Jens Alfke
On Mar 20, 2012, at 11:20 PM, Kyle Sluder wrote: > It's my understanding that xcode-select isn't even supposed to exist anymore; > any copy you have might be left over from an older Xcode install. If that's so, then how is a tool supposed to find the location of the Developer folder? Hardcodin

Re: NSDate interval formatting

2012-03-21 Thread Jens Alfke
On Mar 20, 2012, at 1:38 PM, Markus Spoettl wrote: > I'm looking for a way to determine how a locale would like to have date > intervals formatted. I don't think there's anything built-in for this. When I've done something similar I've had to use my own localized string resources to define th

Re: Delaying Between applicationWillResignActive and applicationDidEnterBackground

2012-03-21 Thread Brian Barnes
On 3/21/2012 6:14 AM, Rhythmic Fistman wrote: On 21 March 2012 05:25, Brian Barnes wrote: I'm facing a real puzzle that might have an easy answer. I've ported my game development software dim3 to iOS. Works fine, but I'm having a problem with the application moving to the background. My pr

Re: Installing & running Xcode

2012-03-21 Thread Vyacheslav Karamov
Hi! XCode 2x works pretty good with Panther. We have old PPC mac-mini with 10.3.9 and XCode 2x (I' don't remember exact version) installed. 21.03.2012 18:11, Nick Zitzmann пишет: On Mar 19, 2012, at 5:52 PM, Bill Meng wrote: I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After inst

Re: NSDate interval formatting

2012-03-21 Thread Markus Spoettl
On 3/21/12 5:27 PM, Jens Alfke wrote: I'm looking for a way to determine how a locale would like to have date intervals formatted. I don't think there's anything built-in for this. When I've done something similar I've had to use my own localized string resources to define the formatting. Def

Re: How to get max size of view according to constraints?

2012-03-21 Thread Per Bull Holmen
Den 01:13 21. mars 2012 skrev Charles Srstka følgende: > On Mar 20, 2012, at 7:00 PM, Peter Ammon wrote: > >> 2. Establish another constraint that says the height of the document view >> equals the height of the scroll view. Give this constraint a priority lower >> than required. What its priori

asynchronous nsurlconnection in nsoperation

2012-03-21 Thread Ariel Feinerman
Hi, I wish to insert an asynchronous NSURLConnection into non-concurrent NSOperation the reason is to allow necessarily unarchive actions on the streaming date so - (void) connection: (NSURLConnection *) connection didReceiveData: (NSData*) data { // Append the new data to receivedData. [_re

Re: Installing & running Xcode

2012-03-21 Thread jonat...@mugginsoft.com
Take it to the Xcode list. Regards Jonathan Mitchell Mugginsoft LLP On 19 Mar 2012, at 23:52, Bill Meng wrote: > > I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After installing > Xcode and running it, clicking on New Project, selecting 'Foundation Tool', > giving it a name and cl

Re: How to get max size of view according to constraints?

2012-03-21 Thread Charles Srstka
On Mar 21, 2012, at 8:54 AM, Per Bull Holmen wrote: > I am old school and know nothing about constraints, but given your > descriptions, perhaps you can tie the document view size to the clip > view size (which is also called content view) instead of the scroll > view size? Actually, what I’m doi

RE: Delaying Between applicationWillResignActive andapplicationDidEnterBackground

2012-03-21 Thread Julius Oklamcak
Have you looked into using UIApplication's -beginBackgroundTaskWithExpirationHandler: in the UIApplicationDelegate's -applicationDidEnterBackground: to give you some background run time to finish the loop? > My biggest problem is this: My game runs in a tight loop. When I get applicationWillRes

Re: How to get max size of view according to constraints?

2012-03-21 Thread Per Bull Holmen
Den 18:09 21. mars 2012 skrev Charles Srstka følgende: > On Mar 21, 2012, at 8:54 AM, Per Bull Holmen wrote: > > I am old school and know nothing about constraints, but given your > descriptions, perhaps you can tie the document view size to the clip > view size (which is also called content view)

makeObjectsPerformSelector on a sub class

2012-03-21 Thread Pascal Harris
I'm doing a little development on iOS (but hopefully this will apply equally to Mac OS X, so fingers crossed that someone will be able to help me out here), and I'm having a little bother with makeObjectsPerformSelector. I've created a custom view (which will be a tile in my game) as follows: @

Re: Installing & running Xcode

2012-03-21 Thread Bill Meng
I will try Version 3, thanks. ___ 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 Subscr

Re: asynchronous nsurlconnection in nsoperation

2012-03-21 Thread Alex Zavatone
Is this for iOS or Mac OS? I've used Grand Central Dispatch and [NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]; The second example is synchronous. There is also: NSData *response_NSData = [NSURLConnection sendSynchronousRequest:my_NSURLRequest returningResponse:&m

Re: How to get max size of view according to constraints?

2012-03-21 Thread Charles Srstka
On Mar 21, 2012, at 12:52 PM, Per Bull Holmen wrote: > Den 18:09 21. mars 2012 skrev Charles Srstka > følgende: >> On Mar 21, 2012, at 8:54 AM, Per Bull Holmen wrote: >> >> I am old school and know nothing about constraints, but given your >> descriptions, perhaps you can tie the document view s

Re: Missing header files/folders?

2012-03-21 Thread Eric Wing
xcode-select actually ships with the OS, not Xcode. However, Xcode 4.3 no longer automatically sets this path so it the path is left in an uninitialized or prior Xcode state. For default locations, Xcode 4.3 needs to be /Applications/Xcode.app/Contents/Developer Prior versions need to be /Develop

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Seth Willits
On Mar 21, 2012, at 7:56 AM, Pascal Harris wrote: > Now I want to scramble the state of each of the tiles. In the game > controller, I'm using the following code: > > [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; > > I've put a breakpoint in scrambleState - and it

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Jens Alfke
On Mar 21, 2012, at 7:56 AM, Pascal Harris wrote: > [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; > > I've put a breakpoint in scrambleState - and it never gets called. I'm > guessing that 'makeObjectsPerformSelector' fails to work because > scrambleState is not a

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Nick Zitzmann
On Mar 21, 2012, at 8:56 AM, Pascal Harris wrote: > I've put a breakpoint in scrambleState - and it never gets called. I'm > guessing that 'makeObjectsPerformSelector' fails to work because > scrambleState is not a method in UIView. Question is, what do I need to do in > order to ensure that t

Re: asynchronous nsurlconnection in nsoperation

2012-03-21 Thread Sebastian Celis
On Wed, Mar 21, 2012 at 10:59 AM, Ariel Feinerman wrote: > I wish to insert an asynchronous NSURLConnection into non-concurrent > NSOperation Hi Ariel, MBRequest does this. It is done by forcing the operation's runloop to continue running while the network connection is in progress. I would reco

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Quincey Morris
On Mar 21, 2012, at 07:56 , Pascal Harris wrote: > @interface gameTile : UIView > > And I've successfully drawn my tiles onto the iOS Simulator screen. > > Now I want to scramble the state of each of the tiles. In the game > controller, I'm using the following code: > > [[self.view subviews]

RE: Delaying Between applicationWillResignActive and applicationDidEnterBackground

2012-03-21 Thread Brian Barnes
Julius Oklamcak wrote: >Have you looked into using UIApplication's >-beginBackgroundTaskWithExpirationHandler: in the >UIApplicationDelegate's-applicationDidEnterBackground: to give you >some background run time to finish the loop? The problem is I need my loop to finish before didEnterBackgr

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Quincey Morris
On Mar 21, 2012, at 13:23 , Quincey Morris wrote: > One thing to check: if your 'scrambleState' actually has a parameter: > > - (void) scrambleState: … > > Then you need '@selector(scrambleState:)', not '@selector(scrambleState)'. > It's an easy thing to overlook. Er, pretend you never s

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Greg Parker
On Mar 21, 2012, at 1:23 PM, Quincey Morris wrote: > One thing to check: if your 'scrambleState' actually has a parameter: > > - (void) scrambleState: … > > Then you need '@selector(scrambleState:)', not '@selector(scrambleState)'. > It's an easy thing to overlook. Of course, if that we

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread James Bucanek
Pascal Harris wrote (Wednesday, March 21, 2012 7:56 AM -): Now I want to scramble the state of each of the tiles. In the game controller, I'm using the following code: [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; I've put

Re: Odd initial save behavior with bundle based NSDocument

2012-03-21 Thread Neil Clayton
Hi Mike, I was about to post code + screenshots showing I had checked all this (which I thought I had). In doing so I found out of course that the autosave mechanism was in fact saving all over the show. Given that we are managing the assets manually (they are large, possible GBs in size, henc

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Gregory Weston
Pascal Harris wrote: > Now I want to scramble the state of each of the tiles. In the game > controller, I'm using the following code: > > [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; > > I've put a breakpoint in scrambleState - and it never gets called. I'm > gu

Re: How to get max size of view according to constraints?

2012-03-21 Thread Per Bull Holmen
Den 19:26 21. mars 2012 skrev Charles Srstka følgende: > It seems to be the same in testing; however, is it guaranteed to be that way > anywhere in the documentation? The fact that NSClipView actually has a > separate property named -documentVisibleRect seems to imply that it isn’t. The -documen

NSData, CFData maximum length question

2012-03-21 Thread Grandinetti Philip
I am confused about different behavior I'm seeing with CFData and NSData.If I create a new project in XCode 4.3.1 as a Core Foundation command line tool, and enter the code below... #include int main(int argc, const char * argv[]) { CFIndex length = (1ULL << 30); fprintf(stderr, "le

Re: How to get max size of view according to constraints?

2012-03-21 Thread Per Bull Holmen
Den 01:35 22. mars 2012 skrev Per Bull Holmen følgende: > The whole > purpose of the clip view is to clip the document view to show only the > visible portion. Therefore, its size will always be equal to the > visible prtion of the document view. It serves no purpose outside that > area. It would

Re: NSData, CFData maximum length question

2012-03-21 Thread Jens Alfke
On Mar 21, 2012, at 6:00 PM, Grandinetti Philip wrote: > it crashes with the error message below: > > length = 1073741824 > test(2463) malloc: *** mmap(size=18446744071562067968) failed (error code=12) That is bizarre — it happens to me too. 18446744071562067968 = 0x8000 … so it’s

Re: NSData, CFData maximum length question

2012-03-21 Thread Grandinetti Philip
Found something interesting. If I simply set the capacity to "length" instead of 0, then it runs without crashing. Could this be a bug in CFData? int main(int argc, const char * argv[]) { CFIndex length = (1ULL << 30); fprintf(stderr, "length = %ld\n",length); CFMutableDataRef dat

Re: Missing header files/folders?

2012-03-21 Thread Joar Wingfors
Hi all, On 21 mar 2012, at 12:04, Eric Wing wrote: > xcode-select actually ships with the OS, not Xcode. However, Xcode 4.3 > no longer automatically sets this path so it the path is left in an > uninitialized or prior Xcode state. xcode-select is certainly still a key component of our tools p

Re: NSData, CFData maximum length question

2012-03-21 Thread Seth Willits
On Mar 21, 2012, at 6:00 PM, Grandinetti Philip wrote: > I am confused about different behavior I'm seeing with CFData and NSData. > If I create a new project in XCode 4.3.1 as a Core Foundation command line > tool, and enter the code below… You've triggered a bug! And it took me a long tim

Re: NSData, CFData maximum length question

2012-03-21 Thread Seth Willits
On Mar 21, 2012, at 10:49 PM, Seth Willits wrote: > On Mar 21, 2012, at 6:00 PM, Grandinetti Philip wrote: > >> I am confused about different behavior I'm seeing with CFData and NSData. >> If I create a new project in XCode 4.3.1 as a Core Foundation command line >> tool, and enter the code

Re: NSData, CFData maximum length question

2012-03-21 Thread Wade Tregaskis
> I'm not sure what [NSMutableData dataWithCapacity:0] does, but it's not a > simple call to CFDataCreateMutable(kCFAllocatorDefault, 0) which is why it > behaves differently as well. It probably ignores the specified capacity, for a start. NSMutableDictionary does for its equivalent method, a

Re: NSData, CFData maximum length question

2012-03-21 Thread Ben Gollmer
On Mar 22, 2012, at 2:12 AM, Seth Willits wrote: > On Mar 21, 2012, at 10:49 PM, Seth Willits wrote: > >> On Mar 21, 2012, at 6:00 PM, Grandinetti Philip wrote: >> >>> I am confused about different behavior I'm seeing with CFData and NSData. >>> If I create a new project in XCode 4.3.1 as a

Re: Installing & running Xcode

2012-03-21 Thread Chris Hanson
Xcode 3.0 and 3.1 are for Mac OS X 10.5 Leopard. For Mac OS X 10.4 Tiger, you want Xcode 2.0 through 2.5. I recommend Xcode 2.5 in the strongest possible terms; it fully supports development for Mac OS X on both PowerPC- and Intel-based 32-bit Macs, and basic libSystem development for 64-bit Ma