Re: Paging UITableView

2012-02-18 Thread Roland King
Indeed in the documentation about nesting UIScrollViews it says ... Cross-directional scrolling is the term used when a scroll view that is a subview of another scroll view scrolls at a 90 degree angle as shown in the right image in Figure 6-1. An example of cross directional scrolling can be fo

Re: Paging UITableView

2012-02-18 Thread Luke Hiesterman
Who/what told you that table views can't be in scroll views? It wouldn't play nicely with swipe to delete, but iOS generally supports nested scroll views (and a table view is just a special scroll view). Luke On Feb 18, 2012, at 8:58 PM, "R" wrote: > I understand that one is not suppose to em

Paging UITableView

2012-02-18 Thread R
I understand that one is not suppose to embed a UITableView in a UIScrollView. I would like the ability to "Page" (horizontal scroll) multiple UITableViews. Is there a way to do this without using UIScrollView? R ___ Cocoa-dev mailing list (Cocoa-dev@

Re: __block __weak - am I doing this right?

2012-02-18 Thread Greg Parker
On Feb 18, 2012, at 9:23 AM, Fritz Anderson wrote: > On 18 Feb 2012, at 7:41 AM, steven Hooley wrote: >> Matt Neuburg wrote: >>> The same issue came up again later the same day: >>> >>> __block UIBackgroundTaskIdentifier bti = [[UIApplication sharedApplication] >>>

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
> That's exactly *why* I've been asking about it - so I can fix it (and explain > the fix) for the new edition: Sorry, I did not mean to imply 'many people have done it wrong because of this book'. What i Failed at saying was "but.. I've seen this pattern everywhere, even in Apple sample code, it

Re: __block __weak - am I doing this right?

2012-02-18 Thread Matt Neuburg
On Feb 18, 2012, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Sat, 18 Feb 2012 18:39:55 + > From: steven Hooley > To: Fritz Anderson > Cc: cocoa-dev@lists.apple.com > Subject: Re: __block __weak - am I doing this right? > Message-ID: > > Content-Type: text/plain; cha

splitviews and subviews

2012-02-18 Thread H. Miersch
hi. in my project i have a splitview that can contain one or more custom views where i do my drawing. what happens when i send a setNeedsDisplay: message to the splitview? will it send the message on to its subviews or do i have to handle that myself?

Proper Way to use the Sandbox

2012-02-18 Thread Brad Stone
I modified my Mac shoebox app for sandboxing. My application stores the user info as a series of file packages in a series of directories all rolling up into a Documents folder. It works fine but now I noticed the sandbox directory structure doesn't get backed up with Time Machine. Obviously,

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
Thanks, I'm just surprised that this common, often cited example is broken. http://books.google.co.uk/books?id=bwQY3_5FMg8C&pg=PA775&lpg=PA775&dq=beginBackgroundTaskWithExpirationHandler&source=bl&ots=aMuw5-hiP6&sig=NFKFDhaPw41KnfOo1n7Z_OaJflM&hl=en&sa=X&ei=T-s_T76JEaOl0AW0y-iPDw&ved=0CGoQ6AEwCTgK

Re: NSPopUpButton not accepting setMenu: from WindowController code

2012-02-18 Thread Erik Stainsby
Michael gave me the clue. I still had the window's owner as AppDelegate. When I corrected that to the WindowController all is well. Details details. ~ Erik On 2012-02-18, at 9:55 AM, Keary Suska wrote: > On Feb 18, 2012, at 8:37 AM, Erik Stainsby wrote: > >> >> [myPUBtn setMenu:menu] accepte

Re: NSPopUpButton not accepting setMenu: from WindowController code

2012-02-18 Thread Keary Suska
On Feb 18, 2012, at 8:37 AM, Erik Stainsby wrote: > > [myPUBtn setMenu:menu] accepted in MyAppDelegate but does not accept > setMenu:menu when relocated to an NSWindowController. I'm thinking there is > something I have missed about the loading sequence. When you call this method, what object

Re: __block __weak - am I doing this right?

2012-02-18 Thread Fritz Anderson
On 18 Feb 2012, at 7:41 AM, steven Hooley wrote: >> The same issue came up again later the same day: >> >> __block UIBackgroundTaskIdentifier bti = [[UIApplication sharedApplication] >> beginBackgroundTaskWithExpirationHandler: >> ^{ >> [[UIApplication s

NSPopUpButton not accepting setMenu: from WindowController code

2012-02-18 Thread Erik Stainsby
[myPUBtn setMenu:menu] accepted in MyAppDelegate but does not accept setMenu:menu when relocated to an NSWindowController. I'm thinking there is something I have missed about the loading sequence. When all the code resided in MyAppDelegate I could load a list of plugins, build a menu item for

Re: __block __weak - am I doing this right?

2012-02-18 Thread steven Hooley
> The same issue came up again later the same day: > >__block UIBackgroundTaskIdentifier bti = [[UIApplication sharedApplication] >beginBackgroundTaskWithExpirationHandler: > ^{ >[[UIApplication sharedApplication] endBackgroundTask:bti]; >}]; > >

Re: Localization for nibs

2012-02-18 Thread Stephane Sudre
On Thu, Feb 16, 2012 at 4:37 AM, Satyanarayana Chebrolu wrote: > Hi, > currently my application supports only English. In the future versions we > would like to have it in around 15 languages. > > What is the best practice for having localized nibs. > > 1) Common approach, different nibs for diff