MODERATOR: End of Thread (was Re: iOS7 Controls)

2013-09-24 Thread Chris Hanson
Please remember that the cocoa-dev list is for technical discussion of Cocoa and Cocoa Touch development, and keep the discussion on-topic. -- Chris Hanson cocoa-dev co-mod ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: iOS7 Controls

2013-09-24 Thread Bradley O'Hearne
> On Tue, Sep 24, 2013 at 7:39 PM, Rick Mann wrote: > >> On Sep 24, 2013, at 17:04 , Luther Baker wrote: >> >> The new UI is > > better overall. I won't render a "better" or "worse", or even a "like" or "dislike". I've been repeatedly reminded of the fact that beauty is in the eye of the be

Re: iOS7 Controls

2013-09-24 Thread Luther Baker
On Tue, Sep 24, 2013 at 7:39 PM, Rick Mann wrote: > > On Sep 24, 2013, at 17:04 , Luther Baker wrote: > > > As alluded to in some of the other posts, some of the others of _us_ that > > care about usability, readability, dynamic text, full screen views, fewer > > shadows and performance are find

Re: iOS7 Controls

2013-09-24 Thread Gary L. Wade
Sounds like you should write up some UI/Usability bugs at http://bugreport.apple.com/ -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Sep 24, 2013, at 5:54 PM, David Rowland wrote: > The weather app is almost unreadable - tiny, thin type in white on a light > blue background.

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Ken Thomases
On Sep 24, 2013, at 8:33 PM, Peter Teeson wrote: > On 2013-09-24, at 9:05 PM, Peter Teeson wrote: >> It would be nice if the documentation for NSMatrix mentioned that in the >> Overview. >> For example "NSMatrix uses flipped coordinates" would have saved everyone >> from my noise. > > 15073135

Re: iOS7 Controls

2013-09-24 Thread David Rowland
I'm happy to embrace iOS7, but Apple's own software offers a caution. The weather app is almost unreadable - tiny, thin type in white on a light blue background. The calendar won't present a list view unless you are searching. The calculator in scientific mode uses tiny type on "buttons" that ca

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
On 2013-09-24, at 9:05 PM, Peter Teeson wrote: > It would be nice if the documentation for NSMatrix mentioned that in the > Overview. > For example "NSMatrix uses flipped coordinates" would have saved everyone > from my noise. 15073135 Documentation Enhancement request filed in bugreporter ___

UIPageViewController page index woes

2013-09-24 Thread Rick Mann
I've implemented the two page index methods in the dataSource, but I'm not getting a page indicator. Where does it appear, near the bottom? I see my methods are being called. I also don't know how to determine the current page index. -presentationIndexForPageViewController: should return an NSI

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
As a final experiment, in my Matrix class I overrode initWithFrame…… and as the first and only line of the override had this: BOOL f = [super isFlipped]; Lo and behold it returned YES which is definitely not the default. I stopped the execution. So from this I conclude that NSMatrix IS flipping t

Re: iOS7 Controls

2013-09-24 Thread Rick Mann
On Sep 24, 2013, at 17:55 , Alex Kac wrote: > Maybe its just me, but the iPad settings don’t look like iOS 6 settings. The > only thing I see is that on the right its iOS 7 style, with an inset of the > white. Its not the same thing as going back to iOS 6 style. That’s a > stylistic minor dif

Re: iOS7 Controls

2013-09-24 Thread Alex Kac
Maybe its just me, but the iPad settings don’t look like iOS 6 settings. The only thing I see is that on the right its iOS 7 style, with an inset of the white. Its not the same thing as going back to iOS 6 style. That’s a stylistic minor difference and Apple even encourages you to customize the

Re: iOS7 Controls

2013-09-24 Thread Rick Mann
On Sep 24, 2013, at 17:04 , Luther Baker wrote: > As alluded to in some of the other posts, some of the others of _us_ that > care about usability, readability, dynamic text, full screen views, fewer > shadows and performance are finding good times ahead as we embrace the > platform and learn ho

Re: iOS7 Controls

2013-09-24 Thread Rick Mann
On Sep 24, 2013, at 17:04 , Luther Baker wrote: > While you are free to do this - in general, reverting to the UI of yore is > not the best practice to embrace. "Resistance is futile. :)" I think you > will be surprised at the problems you will create for yourself trying to do > things the old w

Re: How is one supposed to use a UIPageViewController in a storyboard?

2013-09-24 Thread Rick Mann
On Sep 24, 2013, at 17:14 , Fritz Anderson wrote: > Put an identifier on the embed segue, and listen for it in the parent > controller's prepareForSegue:sender:. The segue that comes into the method > will get you the contained controller. Ah, that's how to get at it. > I'm surprised it's su

Re: How is one supposed to use a UIPageViewController in a storyboard?

2013-09-24 Thread Fritz Anderson
On 24 Sep 2013, at 1:42 PM, Rick Mann wrote: > On Sep 24, 2013, at 10:38 , Fritz Anderson wrote: > >> On 24 Sep 2013, at 3:03 AM, Rick Mann wrote: >> >>> UIPageViewController seems very clunky. On the surface, it looks similar to >>> UITableViewController, but in fact, it behaves very diffe

Re: iOS7 Controls

2013-09-24 Thread Luther Baker
On Tue, Sep 24, 2013 at 4:51 PM, Alex Zavatone wrote: > I'm with you, Gordon. I just bought a new iPad before 7 came out so I do > not have to use iOS 7, unless it is in the simulator. > > It looks too feminine and juvenile for me to feel comfortable using. I'll > just leave my opinion at that.

Re: How is one supposed to use a UIPageViewController in a storyboard?

2013-09-24 Thread Fritz Anderson
On 24 Sep 2013, at 1:42 PM, Rick Mann wrote: > What is "***UNCHECKED***"? I beg pardon. The virus checker on my mail server went on strike, and is decorating subject lines to let me know. I'll respond to the substance of your message soon. — F ___

Re: Casting objects in NSCountedSet

2013-09-24 Thread Roland King
Casting doesn't change what an object is, if your objects are As then they are As and all your cast is doing is lying about it so the compiler allows you to call a method without complaining, but the call will fail. If you want Bs you need to create Bs. > On 24 Sep, 2013, at 11:38 pm, Koen van

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ken Thomases
On Sep 24, 2013, at 11:41 AM, Charles Srstka wrote: > On Sep 24, 2013, at 3:54 AM, Ken Thomases wrote: > >> I believe one solution is the searchfs() routine. Of course, that's a >> potentially slow or expensive operation. In theory, I suppose, searching >> for a file by its ID should be no s

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Charles Srstka
On Sep 24, 2013, at 5:05 PM, Ken Thomases wrote: >> Because if you had to do an entire drive search for every ancestor, that >> would quite likely take a *long* time to complete. > > I don't think that searchfs() _necessarily_ does a true full-drive search. > Given a unique file ID (ATTR_CMN_

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ken Thomases
On Sep 24, 2013, at 4:55 PM, Charles Srstka wrote: > On Sep 24, 2013, at 4:47 PM, Ken Thomases wrote: > >> I was not aware of those limitations. Thanks for enlightening me. It >> looks, though, like you could reconstruct a path by working your way back >> from the item through its ancestors,

Re: Mail.app's split view

2013-09-24 Thread Rick Mann
On Sep 24, 2013, at 14:46 , Kyle Sluder wrote: > On Tue, Sep 24, 2013, at 02:21 PM, Rick Mann wrote: >> Is iPad Mail's split view a standard thing that other apps can easily >> implement? > > Yes. It's a UISplitViewController. > >> I've noticed that swiping to the right to go back up the navig

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Charles Srstka
On Sep 24, 2013, at 4:47 PM, Ken Thomases wrote: > I was not aware of those limitations. Thanks for enlightening me. It looks, > though, like you could reconstruct a path by working your way back from the > item through its ancestors, getting each name along the way, using > ATTR_CMN_NAME an

Re: iOS7 Controls

2013-09-24 Thread Alex Zavatone
I'm with you, Gordon. I just bought a new iPad before 7 came out so I do not have to use iOS 7, unless it is in the simulator. It looks too feminine and juvenile for me to feel comfortable using. I'll just leave my opinion at that. I've already seen people who feel burned that they thought th

Re: Mail.app's split view

2013-09-24 Thread Kyle Sluder
On Tue, Sep 24, 2013, at 02:21 PM, Rick Mann wrote: > Is iPad Mail's split view a standard thing that other apps can easily > implement? Yes. It's a UISplitViewController. > I've noticed that swiping to the right to go back up the navigation > controller hierarchy only works if you begin the swip

Mail.app's split view

2013-09-24 Thread Rick Mann
Is iPad Mail's split view a standard thing that other apps can easily implement? I've noticed that swiping to the right to go back up the navigation controller hierarchy only works if you begin the swipe off the screen. However, in our iPad app that uses popover controllers, you can't do this (i

Re: iOS7 Controls

2013-09-24 Thread Markus Spoettl
On 9/24/13 10:22 PM, Gordon Apple wrote: I¹ve started at least embedding pickers and tables in bordered views. Not ideal, but better than nothing. I¹m thinking about abandoning segmented controls for a bordered view containing buttons. Other than doing a whole slew of custom controls, how are ot

Re: iOS7 Controls

2013-09-24 Thread Alex Kac
Some of us like it. I admit it took a few weeks to get used to it, but once I did I really like it. So how did I deal with it? I embraced it. On Sep 24, 2013, at 2:22 PM, Gordon Apple wrote: > I really don¹t like to do posts like this, but I think it is warranted. My > motivation is to find ou

iOS7 Controls

2013-09-24 Thread Gordon Apple
I really don¹t like to do posts like this, but I think it is warranted. My motivation is to find out how others are coping with this. Admittedly, I¹m late to the party, only upgrading after the release. There were only a few features I thought I might add in my iPad apps for iOS7, so I just let

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
On 2013-09-24, at 1:26 PM, Gary L. Wade wrote: > The object you created has an inset of 40, and since NSMatrix organizes its > cells from the top left, > that is what you are seeing, regardless of whether or not NSMatrix returns > YES for -isFlipped. > If this is a matter of personal discovery, o

Re: ***UNCHECKED*** How is one supposed to use a UIPageViewController in a storyboard?

2013-09-24 Thread Rick Mann
What is "***UNCHECKED***"? On Sep 24, 2013, at 10:38 , Fritz Anderson wrote: > On 24 Sep 2013, at 3:03 AM, Rick Mann wrote: > >> UIPageViewController seems very clunky. On the surface, it looks similar to >> UITableViewController, but in fact, it behaves very differently. There's no >> view

Re: ***UNCHECKED*** How is one supposed to use a UIPageViewController in a storyboard?

2013-09-24 Thread Fritz Anderson
On 24 Sep 2013, at 3:03 AM, Rick Mann wrote: > UIPageViewController seems very clunky. On the surface, it looks similar to > UITableViewController, but in fact, it behaves very differently. There's no > view associated with it, nor can you add a view to it (in the storyboard > editor). That i

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Dave
On 24 Sep 2013, at 18:26, Gary L. Wade wrote: > The object you created has an inset of 40, and since NSMatrix organizes its > cells from the top left, that is what you are seeing, regardless of whether > or not NSMatrix returns YES for -isFlipped. If this is a matter of personal > discovery, o

iOS7 UITextField Placeholder Trickery?????

2013-09-24 Thread Dave
Hi, Has anyone else noticed that Placeholder text in UITextFields's is very dim in iOS7? It looks ok in iOS 6, but in 7 it can hardly be seen? I found this hack: [self.pNameTextField setValue:[UIColor blackColor] forKeyPath:@"_placeholderLabel.textColor"]; Which seems to work, but it is still

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Gary L. Wade
The object you created has an inset of 40, and since NSMatrix organizes its cells from the top left, that is what you are seeing, regardless of whether or not NSMatrix returns YES for -isFlipped. If this is a matter of personal discovery, override -isFlipped in your class and have it return NO t

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
Let me try again to clarify my lack of understanding. (0) I created a new Document project. All I did in IB Inspector pane was to make the window size 500, 500 and Center Horizontally and Vertically (1) I added a sub-class of NSButtonCell with a class name of Class (it will be used as t

Re: Casting objects in NSCountedSet

2013-09-24 Thread Koen van der Drift
On Sep 24, 2013, at 12:37 PM, Kyle Sluder wrote: > If your additional methods don't override any methods of the superclass, you > could convert the subclass to a category. You can even add per-instance > storage using associated objects. Good call for the category, that should be easy to impl

Re: Casting objects in NSCountedSet

2013-09-24 Thread Paul Scott
On Sep 24, 2013, at 9:29 AM, Paul Scott wrote: >> No, you should be able to cast, as the method is found dynamically at >> run-time. Simple test program shows this. > > Your app does not demonstrate Koen's situation, in which he receives a set of > ObjectA instances from the framework. You ar

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Charles Srstka
On Sep 24, 2013, at 3:54 AM, Ken Thomases wrote: > I believe one solution is the searchfs() routine. Of course, that's a > potentially slow or expensive operation. In theory, I suppose, searching for > a file by its ID should be no slower than converting a file reference URL to > a file path

Re: Casting objects in NSCountedSet

2013-09-24 Thread Kyle Sluder
On Sep 24, 2013, at 9:29 AM, Paul Scott wrote: > No, you should be able to cast, as the method is found dynamically at > run-time. Simple test program shows this. Your app does not demonstrate Koen's situation, in which he receives a set of ObjectA instances from the framework. --Kyle Sluder

Re: Casting objects in NSCountedSet

2013-09-24 Thread Kyle Sluder
On Sep 24, 2013, at 9:26 AM, Koen van der Drift wrote: > > On Sep 24, 2013, at 11:52 AM, Kyle Sluder wrote: > >> No, this doesn't make sense. Casting just tells the compiler "I know better >> than you and can guarantee you this expression is actually of this type". It >> doesn't "convert" o

Re: Casting objects in NSCountedSet

2013-09-24 Thread Paul Scott
No, you should be able to cast, as the method is found dynamically at run-time. Simple test program shows this. I created a new project and edited the AppDelegate.h as here: #import @interface SYNAppDelegate : NSObject @property (assign) IBOutlet NSWindow *window; @end @interface ObjectA :

Re: Casting objects in NSCountedSet

2013-09-24 Thread Koen van der Drift
On Sep 24, 2013, at 11:52 AM, Kyle Sluder wrote: > No, this doesn't make sense. Casting just tells the compiler "I know better > than you and can guarantee you this expression is actually of this type". It > doesn't "convert" objects from one type to another—how would it even do that? That's

configuring Xcode to place products in different locations based on selected Architecture

2013-09-24 Thread Abdul Sowayan
Hi folks, I have an existing project that I’d like to transition from 32-bit to 64-bit. The current project places the results of builds such as a static library in a folder that I shall call “Output” In Xcode, I see a drop down menu that allows me to select which architecture to builds for “M

Re: Casting objects in NSCountedSet

2013-09-24 Thread Kyle Sluder
On Sep 24, 2013, at 8:38 AM, Koen van der Drift wrote: > In my app I am using a 3rd party framework, and I have subclassed (objB) one > of the classes (objA) for additional functionality. > > At one point I am getting an NSCountedSet from the framework with objects > objA. When I enumerate

Re: Cocoa-dev Digest, Vol 10, Issue 612

2013-09-24 Thread Rick Aurbach
Dave, In my app, I use 10 storyboards; I find it much easier to group things together into a storyboard of reasonable size containing logically-grouped elements, rather than trying to put everything into one mammoth storyboard. Anyway, there are a few things I try to keep in mind when doing thi

Casting objects in NSCountedSet

2013-09-24 Thread Koen van der Drift
In my app I am using a 3rd party framework, and I have subclassed (objB) one of the classes (objA) for additional functionality. At one point I am getting an NSCountedSet from the framework with objects objA. When I enumerate these, I'd like to cast them as objB, to access the additional func

Re: Alternate to scrollPoint?

2013-09-24 Thread Steve Mills
On Sep 24, 2013, at 08:25:06, Kyle Sluder wrote: > Did you try wrapping your call to -scrollPoint: in an NSAnimationContext with > allowsImplicitAnimation=NO? Sadly, that's 10.8 only, and I need to support 10.7. Plus, we're not layer backed right now due to performance problems with drawing l

Re: Alternate to scrollPoint?

2013-09-24 Thread Kyle Sluder
> On Sep 23, 2013, at 3:02 PM, Steve Mills wrote: > > We have a situation where we want to call scrollPoint on our view that's in a > scroll view. It appears that scrollPoint does not immediately cause the > scroll to happen. Right after we call scrollPoint, we need to ask the view > for its n

Re: Alternate to scrollPoint?

2013-09-24 Thread Steve Mills
On Sep 23, 2013, at 17:02:46, Steve Mills wrote: > We have a situation where we want to call scrollPoint on our view that's in a > scroll view. It appears that scrollPoint does not immediately cause the > scroll to happen. Right after we call scrollPoint, we need to ask the view > for its new

Re: Multiple Storyboard Files

2013-09-24 Thread Alex Zavatone
So, what you can do is duplicate and rename the file and then pick that file as the one to use from the main window after you click on your project file in the Navigator pane for a quick test. I like that approach though. It seems we can't be too careful in this area. Sure seems safest to kee

[ANN] .NET/MONO -> ObjC code generation with Dubrovnik

2013-09-24 Thread jonat...@mugginsoft.com
see https://github.com/ThesaurusSoftware/Dubrovnik Dubrovnik is a framework and set of tools to assist with interfacing Obj-C to .NET/Mono. The framework provides Obj-C access to the embedded Mono API and the code generator reflects on managed assemblies to produce Obj-C source. This largely aut

Re: Multiple Storyboard Files

2013-09-24 Thread Dave
On 24 Sep 2013, at 12:15, Alex Zavatone wrote: > Just the file within the folder. > > But what do you want to do with this file? Localize to another language, or > make a larger size, or what? I'm having to change this file for iOS 7 and I'm not sure if this will break on iOS < 7, so I thou

Re: Multiple Storyboard Files

2013-09-24 Thread Alex Zavatone
Just the file within the folder. But what do you want to do with this file? Localize to another language, or make a larger size, or what? On Sep 24, 2013, at 5:45 AM, Dave wrote: > Hi, > > What is the best way to handle having more than one Storyboard in an > application? > > It looks like

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ben Staveley-Taylor
You're right, I should really be storing bookmark data, but I am working on the Mac side of a cross-platfrom product and the full bookmark information is not available to me without a lot of invasive work. searchfs() sounds like what I need. Thanks very much for the advice. -- Ben. On 24 Sep

Re: iOS 7 -wantsFullScreenLayout confusion?

2013-09-24 Thread Roland King
Isn't called anymore. I think that's in the WWDC talk and possibly the iOS 7 transition guide. > On 24 Sep, 2013, at 5:27 pm, Dave wrote: > > Hi All, > > I have an app that overrides wantsFullScreenLayout in the Navigation > Controller and in the Root View Controller (all other App VCs inher

Multiple Storyboard Files

2013-09-24 Thread Dave
Hi, What is the best way to handle having more than one Storyboard in an application? It looks like I will need two files now, one for iOS < 7 and one for iOS >= 7. The current file is stored in: en.lproj// Folder MainStoryboard_iPhone. storyboard

Re: Developer Site Safari PlugIn

2013-09-24 Thread Dave
On 20 Sep 2013, at 06:52, Sal Conigliaro wrote: > You can also use a Safari extension I wrote to search Apple's site directly: > > http://www.erinedesign.com/extensions/ Thanks a lot - works a treat! All the Best Dave ___ Cocoa-dev mailing list

iOS 7 -wantsFullScreenLayout confusion?

2013-09-24 Thread Dave
Hi All, I have an app that overrides wantsFullScreenLayout in the Navigation Controller and in the Root View Controller (all other App VCs inherit from this VC). I added a check for iOS 7 (see code below) and to test it put a breakpoint in each of the two methods, however the Breakpoint never g

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ken Thomases
On Sep 24, 2013, at 3:24 AM, Ben Staveley-Taylor wrote: > The reason I want to do this is to discover the textual path of a file given > its file ID (and a volume name). > So I suppose my real question is how to find the path for a file by its id > (its fileSystemFileNumber attribute). How is

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ben Staveley-Taylor
Thanks, Ken. The reason I want to do this is to discover the textual path of a file given its file ID (and a volume name). The only way I could come up with to do this was to create a file reference NSURL and then convert it to a file path URL with [NSURL filePathURL]. If there is a better way

Re: How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ken Thomases
On Sep 23, 2013, at 11:14 AM, Ben Staveley-Taylor wrote: > Does anyone know how to get the volume ID number to use in a reference URL? > > I am working with file reference URLs as returned by - (NSURL > *)fileReferenceURL. These have this textual form: > > file:///.file/id=./ > e.g. file:///.

How is one supposed to use a UIPageViewController in a storyboard?

2013-09-24 Thread Rick Mann
Storyboards let me drop in a UIPageViewController, but the Xcode 5 template creates it programmatically instead. UIPageViewController seems very clunky. On the surface, it looks similar to UITableViewController, but in fact, it behaves very differently. There's no view associated with it, nor c

How to discover the volume id to use in a File Reference URL

2013-09-24 Thread Ben Staveley-Taylor
Does anyone know how to get the volume ID number to use in a reference URL? I am working with file reference URLs as returned by - (NSURL *)fileReferenceURL. These have this textual form: file:///.file/id=./ e.g. file:///.file/id=6571367.2773272/ I want to compose a reference URL for a file

Re: Cocoa-dev Digest, Vol 10, Issue 602

2013-09-24 Thread Sal Conigliaro
You can also use a Safari extension I wrote to search Apple's site directly: http://www.erinedesign.com/extensions/ > > You can use Google to search Apple's dev site... > site:https://developer.apple.com iTunes > > > You can also use it to search the archive for this list... > site:http://l