defer loading window using bundles in XCode 3 Leopard

2008-07-25 Thread julius
specific documentation I should be looking at? Any help or advice would be invaluable as I'm on the point of abandoning the attempt. Thanks Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: defer loading window using bundles in XCode 3 Leopard

2008-07-25 Thread julius
Kyle Hi On 25 Jul 2008, at 18:49, Kyle Sluder wrote: On Fri, Jul 25, 2008 at 1:38 PM, julius [EMAIL PROTECTED] wrote: I want to defer loading a window/panel plus controller and related code by using bundles. Do you really not want to include the code inside your executable? Bundles

Re: How to locate coding examples for specified commands

2008-07-26 Thread julius
/animatedPaint/animatedPaint.pl best wishes Julius http://juliuspaintings.co.uk ___ 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

Re: [Newbie] Communication between two Views?

2008-07-28 Thread julius
be found here. (this part of the site is still under construction so kindly excuse glitches) http://juliuspaintings.co.uk/cgi-bin/paint_css/animatedPaint/017-Comunicate-Two-Views.pl Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa

Re: [Newbie] Communication between two Views?

2008-07-29 Thread julius
On 29 Jul 2008, at 03:35, julius [EMAIL PROTECTED] wrote Subject: Re: [Newbie] Communication between two Views? To: Thomas Wickl [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com On 28 Jul 2008, at 16:39, Thomas Wickl [EMAIL PROTECTED] wrote Subject: [Newbie] Communication between two Views

Getting the id of a button in a NSCollectionView

2008-07-31 Thread julius
that knowing how to do this would help me do the same thing if I substituted a Custom NSView for the button, i.e. that I would be able to get the associated view's id when a MyElemObject gets created. Thanking you in advance Julius http://juliuspaintings.co.uk

Re: text view example

2008-09-07 Thread julius
-NSTextView.pl is a highly pared down NSTextView example I adapted from http://hayne.net/MacDev/TestKeyDownEvent/ Hope it helps Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Why does NSArray count return NSUInteger?

2011-05-29 Thread julius
to do this? Julius == Here to satisfy possible curiosity is my test code snippet and results NSMutableArray * zAry = [[NSMutableArray alloc]init]; for(NSInteger i = 0; i 7; i++) { [zAry addObject:@obj]; } NSLog(@[zAry count] = %d,[zAry

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
the number of array elements is never -3 that the Cocoa developers decided to make NSArray count return type NSUInteger? Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Cocoa-dev Digest, Vol 8, Issue 383

2011-05-30 Thread julius
. They used the datatype which maps onto the thing they are describing, array elements are non-negative integers, so they used NSUInteger. So are you saying that the designers made this decision solely because of a particular interpretation of dogma? Julius http://juliuspaintings.co.uk

Re: Cocoa-dev Digest, Vol 8, Issue 383

2011-05-30 Thread julius
On 30 May 2011, Graham Cox wrote On 30/05/2011, at 9:03 PM, julius wrote: Why did Cocoa developers make the count method return NSUInteger? Because you can't have negative numbers of elements in an array. It's that simple. Yes but is that the only reason for doing

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
On 30 May 2011, Graham Cox wrote On 30/05/2011, at 9:03 PM, julius wrote: Why did Cocoa developers make the count method return NSUInteger? Because you can't have negative numbers of elements in an array. It's that simple. Yes but is that the only reason for doing

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
On 30 May 2011, at 16:02, Graham Cox wrote: On 31/05/2011, at 12:03 AM, julius wrote: has the potential to create problems if it skips one's mind Well, so does almost anything in life. Coding's no different. Of course I find decision to have NSArray count return NSUInteger somewhat

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
On 30 May 2011, at 16:40, Roland King wrote: On 30-May-2011, at 11:05 PM, julius wrote: On 30 May 2011, at 15:52, Roland King r...@rols.org wrote On 30-May-2011, at 9:18 PM, julius wrote: They used the datatype which maps onto the thing they are describing, array elements

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
On 30 May 2011, at 20:03,Quincey Morris wrote On May 30, 2011, at 08:27, julius wrote: All I had hoped was that someone on this list might illuminate the issue more than has happened so far. The problem isn't really lack of illumination, but that you're not prepared to accept

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
On 30 May 2011, at 21:56, Dave Zarzycki wrote: On May 30, 2011, at 1:45 PM, julius wrote: On 30 May 2011, at 20:03,Quincey Morris wrote On May 30, 2011, at 08:27, julius wrote: All I had hoped was that someone on this list might illuminate the issue more than has happened so far

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread julius
On 30 May 2011, at 22:34, Quincey Morris wrote: On May 30, 2011, at 13:45, julius wrote: Hilarity and riot. Glad to have been of service. Here is a nice instance that I think quite germane. The input parameter to NSArray's objectAtIndex: is an NSUInteger. Both these code snippets

Re: Why does NSArray count return NSUInteger?

2011-05-31 Thread julius
On 31 May 2011, at 10:00, Alejandro Rodríguez wrote: Hey Julius, The reason for using NSUInteger on such a high level framework as Cocoa may not seem relevant but for the sake of completeness let me go down a road less explored by many of the other answers. I think using NSUInteger vs

view:(QTMovieView *)view willDisplayImage:

2011-08-04 Thread julius
discussions on various forums circa 2008, suggest the method had been used successfully in the past but it's not worked for me. XCode seems not to recognise it. Is the method no longer extant? Should I look to try another approach e.g. Core Video? I use XCode 3.2.6 Julius http

Re: view:(QTMovieView *)view willDisplayImage:

2011-08-04 Thread julius
thanks. I'll take a good look at both of these. Best wishes Julius http://juliuspaintings.co.uk ___ 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

Re: view:(QTMovieView *)view willDisplayImage:

2011-08-06 Thread julius
On 5 Aug 2011, at 16:04, douglas welton wrote: Julius, QTMovieLayer is your friend. If you haven't already, check out the Core Animation QuickTime Layer sample code. I think you'll find it very helpful. regards, douglas Douglas hi, thanks for the suggestion. I'll study the code

Re: view:(QTMovieView *)view willDisplayImage:

2011-08-06 Thread julius
On 6 Aug 2011, at 13:23, Ron Fleckner wrote: On 06/08/2011, at 9:00 PM, julius wrote: The need for the child window to have a minimum alpha of 0.05 in order for it to receive mouse events has an acceptably small effect on the movie's colour. Hey Julian, this should allow you to get

resizing window containing NSView with CALayer

2011-08-06 Thread julius
is resized the right hand side of the view will have moved to the right. Again the left border is unaffected. XCode 3.2.6 OSX 10.6.8 Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: resizing window containing NSView with CALayer

2011-08-07 Thread julius
behaviour if I leave out all the layer stuff and instead code the following in the view - (void)drawRect:(NSRect)dirtyRect { [[NSColor blackColor]set]; [NSBezierPath fillRect:[self bounds]]; } // end drawRect Julius http://juliuspaintings.co.uk

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 7 Aug 2011, at 21:30, Kyle Sluder wrote: On Sun, Aug 7, 2011 at 1:05 PM, julius jul...@juliuspaintings.co.uk wrote: It is not a problem with the layers. I get exactly the same behaviour if I leave out all the layer stuff and instead code the following in the view Meaning, you still

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 8 Aug 2011, at 01:46, Graham Cox wrote: On 08/08/2011, at 5:52 AM, julius wrote: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { I didn't notice first time through that this is where your code resides (sometimes the most obvious errors pass by when you're

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
done something to my machine then: Mac Pro, OS X 10.6.8 XCode 3.2.6 thanks for your efforts I was going to put a constraint on window size anyway but now that is essential. best wishes Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
and managed approach looks beautifully structured and versatile. Best wishes Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Best way to manage double-clicked files?

2011-12-10 Thread julius
and http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html Hope this helps. Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Best way to manage double-clicked files?

2011-12-11 Thread julius
use one of the application delegate methods such as the one suggested by Lee Ann Rucker and display the pop-up window from inside it. Best wishes Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: How to know if a file has been opened before?

2012-06-05 Thread julius
. Julius http://juliuspaintings.co.uk ___ 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

UTI strings

2010-05-30 Thread julius
tells me the system defined UTI strings and i can use the mdls command in the terminal to find the UTI of a given file but so far I have found nothing to tell me which of these UTI strings maps onto which of the Document Type strings I'm looking for. Thanks Julius

Re: UTI strings

2010-05-30 Thread julius
documentAttributes:zDict error:outError]; Julius On 30 May 2010, at 17:29, Kyle Sluder wrote: On Sun, May 30, 2010 at 9:22 AM, julius jul...@juliuspaintings.co.uk wrote: I'm having

Re: UTI strings

2010-05-30 Thread julius
NSDocFormatTextDocumentType NSWordMLTextDocumentType NSOfficeOpenXMLTextDocumentType NSOpenDocumentTextDocumentType unless of course there's a way of specifying the constants for NSAttributedString using the kUTTypes that I've not found yet Thanks again Julius On 30 May 2010, at 18:33, Mike

Re: UTI strings

2010-05-30 Thread julius
Julius http://juliuspaintings.co.uk ___ 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

Re: UTI strings

2010-05-30 Thread julius
Ken hi, thanks for responding. On 30 May 2010, at 20:21, Ken Thomases wrote: On May 30, 2010, at 1:04 PM, julius wrote: unless of course there's a way of specifying the constants for NSAttributedString using the kUTTypes that I've not found yet The Snow Leopard AppKit release notes

Re: UTI strings

2010-05-31 Thread julius
On 31 May 2010, at 01:42, John Joyce wrote: On May 30, 2010, at 5:15 PM, julius wrote: John hi On 30 May 2010, at 19:47, John Joyce wrote: That's not how these constants work. These are intended to be constants that return the correct type for the current build of the system

Re: UTI strings

2010-05-31 Thread julius
me which UTI maps onto NSPlainTextDocumentType and which onto NSMacSimpleTextDocumentType ? Thanks Julius -- http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: UTI strings

2010-05-31 Thread julius
On 31 May 2010, at 10:23, Ken Thomases wrote: On May 31, 2010, at 4:06 AM, Jean-Daniel Dupas wrote: Le 31 mai 2010 à 10:53, julius a écrit : and which onto NSMacSimpleTextDocumentType ? In 3 major releases Apple didn't managed to declare UTI for modern file formats like sdef

Re: UTI strings

2010-05-31 Thread julius
of hours lost repeating the same thing over and over again. Reminds me of Einstein's definition of insanity. thanks Julius -- http://juliuspaintings.co.uk I'm looking for comments re: http://juliuspaintings.co.uk/physics-of-thought

NSAllocateCollectable memory allocation problem

2010-06-21 Thread julius
that is causing the problem. Que passa? What am I doing wrong ? Julius -- http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSAllocateCollectable memory allocation problem

2010-06-21 Thread julius
On 21 Jun 2010, at 15:47, Michael Babin wrote: On Jun 21, 2010, at 7:06 AM, julius wrote: Inside MyControl define three pointers of type CGFloat , e.g CGFloat * mem1, mem2, mem3; and declare them as @property GFloat * mem1; etc with corresponding @synthesize statements. Declare

Re: Need help understanding first responder and multiple nibs

2010-08-04 Thread julius
window. Whether that was the correct answer I have no way of knowing but it seemed to work in this instance. all the best Julius -- http://juliuspaintings.co.uk I'm looking for comments re: http://juliuspaintings.co.uk/physics-of-thought

Mac Pro memory sizes

2009-01-11 Thread julius
to disk, should I now think that this will be saved as 100MB by 64 bit (i.e. 8 x 8-bit byte) integers? If it is 100MB by 64 bit integers then should I think of compressing the data so as to reduce bandwidth requirements? Thanks Julius http://juliuspaintings.co.uk

Re: Mac Pro memory sizes

2009-01-11 Thread julius
is the only way. best wishes Julius http://juliuspaintings.co.uk ___ 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

Re: Mac Pro memory sizes

2009-01-12 Thread julius
representation seriously affect computation speed ? What are other people doing? If you have any good links or advice they'd be much appreciated. Thanks Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Mac Pro memory sizes

2009-01-13 Thread julius
Keit hi, On 12 Jan 2009, at 22:51, Schultz Keith J. wrote: Hi Julius, If I understand your problem correctly you are: 1) processing a very large amount of intergers 2) using highly optimized code that is: a) you are manipulating the data directly via pointers

Re: Mac Pro memory sizes

2009-01-13 Thread julius
was advised to avoid premature optimisation and bit packing. So my thanks to you all. I return to the fray with mind much eased. Thanks again Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: [NOOB] Finding Information (was: real noob question)

2009-01-19 Thread julius
it worthwhile so why not say so in the documentation? Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: [NOOB] Finding Information (was: real noob question)

2009-01-19 Thread julius
On 19 Jan 2009, at 16:17, mmalc Crawford wrote: On Jan 19, 2009, at 6:10 AM, julius wrote: I too followed up on the example link which took me to the top of the NSDecimalNumber Class reference document. Scrolling down the first thing I came accross under Tasks was Creating a Decimal

threads and delegates

2010-12-15 Thread julius
they not get called? 2. How does one create a situation where they do get called? Thanks in advance Julius ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: threads and delegates

2010-12-15 Thread julius
runloop; use the main thread. Thanks Julius http://juliuspaintings.co.uk ___ 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

nsoutlineview crashes

2008-02-22 Thread Julius Eckert
Hi, i am implementing a datasource for an nsoutlineview to represent the contents of a simple tree-structure defined by the following class (simplified): @interface TBCatalogNode : NSObject { NSMutableArray* children; } @property (readonly, retain) NSMutableArray* children; (the array

Problem with CIFilters

2008-05-11 Thread Julius Eckert
to make this more clear: http://www.mygnu.com/julius/temp/SFBug.mov Has anyone an idea , why this is happening and how I can fix it? BTW: its a quicksilver interface called silverflow, already available as beta on my website www.jeckert.net.tc , freeware Thanks in advance, Julius

Re: Bypassing Interface Builder

2008-05-14 Thread Julius Guzy
to square one. All this said, cocoa and Objective-C is beautiful. I just wish it were easier to learn. Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Dynamic message typing problem

2008-05-14 Thread Julius Guzy
testDynamicBinding[1311:10b] End calling the methods dynamically Thanks Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Bypassing Interface Builder

2008-05-14 Thread Julius Guzy
out by the roots rage and frustration Julius http://juliuspaintings.co.uk ___ 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

Re: Dynamic message typing problem

2008-05-16 Thread Julius Guzy
Debug Release Is this information sufficient? Thanks Julius http://juliuspaintings.co.uk ___ 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

Re: Dynamic message typing problem

2008-05-16 Thread Julius Guzy
] 88.880 Thanks again Julius http://juliuspaintings.co.uk ___ 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

Re: Dynamic message typing problem

2008-05-17 Thread Julius Guzy
]; This does not work but what is wrong with this line of reasoning and/ or why could the system not make use of coercion as part of a dynamic typing mechanism? Thanks again Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa

Cocoa et al as HCI usability problem

2008-05-18 Thread Julius Guzy
. It is expensive because the design of good HCI is primarily an empirical activity centered on user testing. The question is then whether we and possibly apple should do anything about it. Julius http://juliuspaintings.co.uk ___ Cocoa-dev

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread Julius Guzy
and are willing to put oodles of effort into doing it? Julius http://juliuspaintings.co.uk ___ 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

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread Julius Guzy
On 18 May 2008, at 17:41, Jens Alfke wrote: On 18 May '08, at 4:33 AM, Julius Guzy wrote: Apple has been less celebrated for the humanity of its programming interface having, in my experience of Macs from the Lisa onwards, seemingly taken the attitude that its programmers were hobbyists

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread Julius Guzy
On 19 May 2008, at 1:56, David Wilson wrote: On Sun, May 18, 2008 at 8:41 PM, Julius Guzy [EMAIL PROTECTED] wrote: Well, there is a problems with the documentation and if it does not get resolved then people will end up unable to write the code. I mean what is the point in loosing people

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread Julius Guzy
On 19 May 2008, at 2:34, Jens Alfke wrote: On 18 May '08, at 6:15 PM, Julius Guzy wrote: I do not think it naive of me to raise serious questions regarding usability given that i have made huge and increasingly successful efforts to get into this system so I can do some heavy duty

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Julius Guzy
of Cocoa et al must be a pretty savvy programmer. Julius http://juliuspaintings.co.uk ___ 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

A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-19 Thread Julius Guzy
. 9. It could result in a pretty good piece of documentation. It is just a thought must rush Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: ANN: Step by step introduction to programming with Cocoa

2008-05-21 Thread Julius Guzy
of the question and the reply is that much more clear 7. It could result in a pretty good piece of documentation. I thought i would just throw the idea into the ring again all the best Julius http://juliuspaintings.co.uk ___ Cocoa-dev mailing list (Cocoa-dev

Re: ANN: Step by step introduction to programming with Cocoa

2008-05-22 Thread Julius Guzy
On 22 May 2008, at 1:43, Shawn Erickson wrote: On Wed, May 21, 2008 at 5:38 PM, Julius Guzy [EMAIL PROTECTED] wrote: I suggested some time back (A documetation suggestion 19 May 2008 13:31:30) but no one took me up on it, the idea of seeing if Apple would so to speak donate a copy

Re: ANN: Step by step introduction to programming with Cocoa

2008-05-22 Thread Julius Guzy
On 22 May 2008, at 1:52, Jack Repenning wrote: On May 21, 2008, at 5:38 PM, Julius Guzy wrote: Actually the idea was to include a text box at the end of each section where people could post queries regarding that section, e.g. questions about something they did not understand

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-22 Thread Julius Guzy
kind of a consensus and then thrash out a suitable format and mechanism within the group? Julius On May 19, 2008, at 5:31 AM, Julius Guzy wrote: Well I never thought I would cause this much discussion. I have tried but do not have the time needed to reply to all. I might still but work must

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Julius Guzy
On 22 May 2008, at 23:19, Scott Anguish wrote: On May 22, 2008, at 10:39 AM, Julius Guzy wrote: On 22 May 2008, at 4:55, David Casseres wrote: That's a really good idea, your wiki-that's-more-than-a-wiki. You're in charge! 8^{) Ha Ha But just as a matter of interest, how would one

RE: Problems with UIAlertView

2011-08-17 Thread Julius Oklamcak
I'm looking at popovers. I'm wondering if there is any way that I'm overlooking to make popovers modal. The UIViewController that you present in the popover has a property named modalInPopover: The default value of this property is NO. Setting it to YES causes an owning popover controller to

RE: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Julius Oklamcak
You need to implement the -viewForZoomingInScrollView: UIScrollViewDelegate method and return the image view. Please have a look at Apple's ScrollViewSuite sample code: http://developer.apple.com/library/ios/#samplecode/ScrollViewSuite/Introduct ion/Intro.html I just added this:    

RE: receptionist pattern question: NSOperationQueue vs. GCD

2012-02-16 Thread Julius Oklamcak
On iOS, NSOperationQueue doesn't use GCD at all. Actually, posts by Apple people in the Developer Forums and the documentation differs on this: http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/NSOper ationQueue_class/Reference/Reference.html Note: In iOS 4 and later,

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

RE: Static TableView Leaks...

2012-04-06 Thread Julius Oklamcak
leak: Malloc 48 bytes per incident libsystem_c.dylib studup https://devforums.apple.com/message/630695#640345 Known bug in iOS 5.1 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

RE: uiviewcontroller

2012-04-19 Thread Julius Oklamcak
Have a look at +attemptRotationToDeviceOrientation in iOS 5: http://developer.apple.com/library/ios/documentation/uikit/reference/UIViewC ontroller_Class/Reference/Reference.html#//apple_ref/occ/clm/UIViewControlle r/attemptRotationToDeviceOrientation is the official or unofficial way to force

RE: Executing a very low-priority operation in iOS

2012-04-25 Thread Julius Oklamcak
Normally I'd set up a timer to fire in a minute, set up an NSBlockOperation, and let it go. When it finishes, I'd repeat the process. But I don't see any way to adjust the priority of an NSOperationQueue. NSBlockOperation inherits from NSOperation so you should be able to -setQueuePriority:

RE: NSOperationQueue

2012-06-01 Thread Julius Oklamcak
At the moment that the operations are queued, there are some operations in the queue not yet run, and some running. The code that creates the operations doesn't know which ones are needed more urgently (the latest ones), so it can only assign a high priority to all of them, so they all end up

RE: wacky image stretching on rotation (repost)

2012-07-06 Thread Julius Oklamcak
Check self.thumbImageView.contentMode - it's probably the default UIViewContentModeScaleToFill (should be UIViewContentModeCenter). Also ensure that the UIImage that you provide really has square dimensions. I had the exact same issue when rotating the UIImageView of a UIButton... I have a

RE: Xcode 4.3, XIB files and deployment target iOS 3.1

2012-07-06 Thread Julius Oklamcak
Presuming that the firstgen iPod touch has iOS 3.x on it, it is probably crashing here: self.window.rootViewController = self.tabBarController; Since rootViewController was introduced to UIWindow in iOS 4.0. Pre-iOS 4.0 you need to use (from what I recall): [self.window

RE: wacky image stretching on rotation (repost)

2012-07-06 Thread Julius Oklamcak
I would suspect that the UIImageView's autoresizingMask might be the culprit - if it isn't UIViewAutoresizingNone, then the frame may be resizing itself when rotated. Sometimes it is less trouble to create your own UITableViewCell subclass and have full control over your subviews instead of trying

RE: PDF Rendering on iPad's

2012-07-25 Thread Julius Oklamcak
Dave, I have a few questions about rendering PDFs and wondered if anyone here could help. In my open source iOS PDF viewer (https://github.com/vfr/Reader) I employ two techniques: 1) Show a low resolution image of the page below the CATiledLayer-based zoom-able page view. These low resolution

RE: How to (slowly) rotate a view

2012-08-05 Thread Julius Oklamcak
FWIW: UIView sets the delegate of its CALayer to itself - one of the things that it appears to do is to disable any implicit animations. If you add your own CALayer to a UIView's CALayer, then you're in full control. As already pointed out, it's easier using one of the UIView animation class

RE: [Q] a view is associated with more than one view controller?

2012-10-25 Thread Julius Oklamcak
If anyone knows how to solve this problem, please show me your guidance. From some work I did earlier this year for a client, UIImagePickerController needs to be presented modally or in a UIPopoverController. It also doesn't handle being a root view controller very well

RE: How can I get rid of this warning message?

2013-01-21 Thread Julius Oklamcak
Ok, I agree that the selector is unknown, but we know from the previous line that the target responds to it. So I'd like to prevent this particular warning. I'm sure I ought to know how do do this, but how do I go about removing this warning message? Ideally, I'd like to do this on a file (or

RE: iOS splash screen animation

2013-04-10 Thread Julius Oklamcak
When my app starts, I'd like to show a splash screen with a logo, etc, and animate it to the main screen after a short delay. [snip] Any suggestions what I could be doing wrong? Do this in your root view controller's -viewWillAppear: method. You also need to ensure that it only happens once

RE: Moving a textField from under keyboard

2013-06-28 Thread Julius Oklamcak
I'm looking for something OR some method that knows how to change (I think) the position (I think) of the view containing a UITextField so the TextField is visible after a keyboard comes up and covers it. Then the view goes back to normal position once the keyboard is dismissed. Is there an

RE: Button on side menu not working

2013-07-28 Thread Julius Oklamcak
There could be two reasons: [self.view sendSubviewToBack:_menuView.view]; Is placing other UIViews in the view hierarchy on top of the menu view and they could be eating touches. _menuView.view.frame=CGRectMake(-160,0,160,440); self.view.frame=CGRectMake(160, 20, 320, 548); UIViews that are

RE: iOS 7 GUI update lag during drag touches

2013-10-03 Thread Julius Oklamcak
CGPoint apoint=[[touches anyObject] locationInView:[self view]]; [layer setPosition:apoint]; You need to disable implicit CALayer animation(s): [CATransaction begin]; [CATransaction setDisableActions:YES]; [layer setPosition:apoint]; [CATransaction commit];

RE: Best way to make Finder/Mail style toolbars?

2014-03-09 Thread Julius Oklamcak
What does the code you're using look like? (Also, are you on 10.9?) The following works for me from 10.6 to 10.9 (I've left out code that creates an NSSearchField, NSPopUpButton and NSTextField controls - all look the same): - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar

RE: How to get iOS version at runtime?

2014-07-18 Thread Julius Oklamcak
[[UIDevice currentDevice] systemVersion] returns a string, i.e. 7.1.2. if ([[[UIDevice currentDevice] systemVersion] compare:@8.0 options:NSNumericSearch] == NSOrderedDescending) // older than 8.0 else // 8.0 and newer -Original Message- From: