Re: secure uitextfield is not secure

2014-03-06 Thread Uli Kusterer
On 05 Mar 2014, at 23:17, Alex Kac a...@webis.net wrote: Perhaps a good bug report is that the user’s screen works the same way it does now, but if its mirrored - then the mirrored screen keeps he password hidden. That would be a good use case. That’s a very presenter-specific use case. I

Re: secure uitextfield is not secure

2014-03-06 Thread Uli Kusterer
On 05 Mar 2014, at 23:57, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Incidentally, having a “fully obscured” custom text field won’t help you in the demo scenario, because the audience can still see the key images pop up on the keyboard as you type. Are you proposing removing

Re: secure uitextfield is not secure

2014-03-06 Thread William Squires
I believe it's because of the virtual on-screen keyboard - this way you can verify whether the character you typed has uppercase or not, since the virtual keyboard has no Caps Lock LED on it, or just because the iPhone screen keyboard keys are so small, it's easy to make a typo when entering

Inherited Protocols

2014-03-06 Thread William Squires
Can an ObjC protocol be inherited by another protocol? I know the syntax for regular (class) inheritance, and for specifying that a class implements a protocol, but what's the syntax (if there is one) for one protocol inheriting from another? i.e. I have a protocol, INotSoStiffProtocol that

Re: Inherited Protocols

2014-03-06 Thread Mike Abdullah
On 6 Mar 2014, at 15:30, William Squires wsqui...@satx.rr.com wrote: Can an ObjC protocol be inherited by another protocol? I know the syntax for regular (class) inheritance, and for specifying that a class implements a protocol, but what's the syntax (if there is one) for one protocol

Re: Inherited Protocols

2014-03-06 Thread Uli Kusterer
On 06 Mar 2014, at 16:34, Mike Abdullah mabdul...@karelia.com wrote: This means any object adopting MyProtocol must implement all of the NSObject protocol’s methods too. Useful thing to point out here: There are both a class and a protocol named 'NSObject'. In fact, the class conforms to

Re: Inherited Protocols

2014-03-06 Thread jonat...@mugginsoft.com
On 6 Mar 2014, at 15:34, Mike Abdullah mabdul...@karelia.com wrote: On 6 Mar 2014, at 15:30, William Squires wsqui...@satx.rr.com wrote: Can an ObjC protocol be inherited by another protocol? I know the syntax for regular (class) inheritance, and for specifying that a class implements a

Re: Inherited Protocols

2014-03-06 Thread Mike Abdullah
On 6 Mar 2014, at 16:29, jonat...@mugginsoft.com wrote: On 6 Mar 2014, at 15:34, Mike Abdullah mabdul...@karelia.com wrote: On 6 Mar 2014, at 15:30, William Squires wsqui...@satx.rr.com wrote: Can an ObjC protocol be inherited by another protocol? I know the syntax for regular

Draw image within a NSBezierPath with no border

2014-03-06 Thread Leonardo
Hi, I have an oval NSBezierPath path. I fill it with a blue color, then I draw an image within the same path. And I can still see a blue tiny border around the image. I would expect the color be never visible since the image covers the whole area. That's my code: fillPath = [NSBezierPath

Re: Draw image within a NSBezierPath with no border

2014-03-06 Thread Kevin Meaney
I'd try clipping before drawing the fill, rather than after. Kevin On 6 Mar 2014, at 16:34, Leonardo mac.iphone@gmail.com wrote: Hi, I have an oval NSBezierPath path. I fill it with a blue color, then I draw an image within the same path. And I can still see a blue tiny border around the

Re: Draw image within a NSBezierPath with no border

2014-03-06 Thread Kyle Sluder
On Mar 6, 2014, at 8:34 AM, Leonardo mac.iphone@gmail.com wrote: Hi, I have an oval NSBezierPath path. I fill it with a blue color, then I draw an image within the same path. And I can still see a blue tiny border around the image. I would expect the color be never visible since the

Re: Draw image within a NSBezierPath with no border

2014-03-06 Thread Leonardo
That's make sense. Do you know any workaround? I have to draw the background color because: 1) the user could choose to see a background color on the area not covered by the image. Let's imagine a circle divided in 3 slices by two vertical lines. In the middle we have the image, and on the

Re: Draw image within a NSBezierPath with no border

2014-03-06 Thread Kyle Sluder
On Mar 6, 2014, at 9:25 AM, Leonardo mac.iphone@gmail.com wrote: That's make sense. Do you know any workaround? I have to draw the background color because: 1) the user could choose to see a background color on the area not covered by the image. Let's imagine a circle divided in 3

Class name as NSString and problem with NSLog?

2014-03-06 Thread William Squires
Given an object, and a method within, is there some way to get the name of the class of the object as an NSString? For that matter, what I want to do is something like this: Class MyClass MyClass.h #import Foundation/Foundation.h @interface MyClass : NSObject ... -(void)myMethod; @end

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Sixten Otto
First off, you don't need to build the string ahead of time; NSLog() supports vararg formatting: NSLog(@%@ -(void)myMethod, myClassName); Off the top of my head, I can't recall whether Class objects get formatted as the class name automatically: NSLog(@%@ -(void)myMethod, [self class]);

Cocoa custom text field backspace handling

2014-03-06 Thread Daniel Luis dos Santos
I am developing a custom textfield in Cocoa. To handle the backspace character I should be defining : - (void) keyUp: (NSEvent*)theEvent { [self interpretKeyEvents: [NSArray arrayWithObject: theEvent]; NSString *text = [theEvent charactersIgnoringModifiers]; [[self text]

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Kyle Sluder
On Mar 6, 2014, at 10:21 AM, William Squires wsqui...@satx.rr.com wrote: Given an object, and a method within, is there some way to get the name of the class of the object as an NSString? For that matter, what I want to do is something like this: Class MyClass MyClass.h #import

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Ken Thomases
On Mar 6, 2014, at 12:21 PM, William Squires wrote: Given an object, and a method within, is there some way to get the name of the class of the object as an NSString? Well, you could do NSStringFromClass([self class]) but that gives the name of the object's dynamic class, which is not

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Scott Andrew
Even further you can get the current command by using NSStringFromSelector(_cmd); _cmd is the current selector. You can also use NSLog(@“%s”, _PRETTY_FUNCTION”) which will give you the class name and current selector. Do a google search also for NSLog replacements there are ones that do a lot

NSSavePanel?

2014-03-06 Thread livinginlosangeles
What’s Adobe’s beef with NSSavePanel? I found this while running fs_usage on my computer. Adobe Easter Egg? 11:14:46 getattrlist /Volumes/DriveA/030514 0.14 Adobe Photos 11:14:46 getattrlist es/DriveA/030514/TestSave0.10 Adobe Photos 11:14:46 lstat64

Re: NSSavePanel?

2014-03-06 Thread Kyle Sluder
On Thu, Mar 6, 2014, at 11:20 AM, livinginlosange...@mac.com wrote: What’s Adobe’s beef with NSSavePanel? I found this while running fs_usage on my computer. Adobe Easter Egg? No clue, but this thread isn't going to provide any useful discussion. --Kyle Sluder

Re: Cocoa custom text field backspace handling

2014-03-06 Thread Mike Abdullah
On 6 Mar 2014, at 18:30, Daniel Luis dos Santos daniel.d...@gmail.com wrote: I am developing a custom textfield in Cocoa. To handle the backspace character I should be defining : When you say custom, do you mean you’re trying to customise NSTextField? Or that you’re actually trying to write

Re: Cocoa custom text field backspace handling

2014-03-06 Thread Kyle Sluder
On Thu, Mar 6, 2014, at 10:30 AM, Daniel Luis dos Santos wrote: I am developing a custom textfield in Cocoa. To handle the backspace character I should be defining : Hold up. It's fairly very rare to subclass NSTextView and do custom processing there. Why do you feel the need to do this? Cocoa

Re: Cocoa custom text field backspace handling

2014-03-06 Thread SevenBits
On Mar 6, 2014, at 2:46 PM, Kyle Sluder k...@ksluder.com wrote: On Thu, Mar 6, 2014, at 10:30 AM, Daniel Luis dos Santos wrote: I am developing a custom textfield in Cocoa. To handle the backspace character I should be defining : Hold up. It's fairly very rare to subclass NSTextView and do

Re: Cocoa custom text field backspace handling

2014-03-06 Thread Quincey Morris
On Mar 6, 2014, at 11:46 , Kyle Sluder k...@ksluder.com wrote: Hold up. Aside from the objections you and Mike raised, there’s actually quite a lot more to be alarmed about in the OP’s code: 1. It overrides keyUp instead of keyDown. ‘interpretKeyEvents:’ probably isn’t even legal in keyUp

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Lee Ann Rucker
On Mar 6, 2014, at 10:21 AM, William Squires wrote: Also, when I do this (using a literal NSString constant for myClassName above), Xcode marks the line with NSLog with a yellow triangle, and disclosing it says something about passing an NSString instance as being unsecure. Can this

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Greg Parker
On Mar 6, 2014, at 10:21 AM, William Squires wsqui...@satx.rr.com wrote: Also, when I do this (using a literal NSString constant for myClassName above), Xcode marks the line with NSLog with a yellow triangle, and disclosing it says something about passing an NSString instance as being

Re: NSSavePanel?

2014-03-06 Thread Todd Heberlein
Not sure if this is directly related, but… When a non-sandboxed application presents the Open or Save panel, the program starts opening files in the currently selected directory. Move to a different directory, and the application will start pounding on the files in that directory. This seems

push button bounds are bigger than I'd expected...

2014-03-06 Thread Sean McBride
Hi all, In Interface Builder, if I turn on Editor Canvas Show Bounds Rectangles then it shows blue rectangles representing views' bounds rectangles (I suppose). I notice for push buttons that this blue rectangle is not where I expect it, it's not tight around the visual appearance of the

Re: push button bounds are bigger than I'd expected...

2014-03-06 Thread Lee Ann Rucker
On Mar 6, 2014, at 2:37 PM, Sean McBride wrote: Hi all, In Interface Builder, if I turn on Editor Canvas Show Bounds Rectangles then it shows blue rectangles representing views' bounds rectangles (I suppose). I notice for push buttons that this blue rectangle is not where I expect

Re: NSSavePanel?

2014-03-06 Thread SevenBits
On Mar 6, 2014, at 4:18 PM, Todd Heberlein todd_heberl...@mac.com wrote: Not sure if this is directly related, but… When a non-sandboxed application presents the Open or Save panel, the program starts opening files in the currently selected directory. Move to a different directory, and

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Jens Alfke
On Mar 6, 2014, at 10:21 AM, William Squires wrote: Also, when I do this (using a literal NSString constant for myClassName above), Xcode marks the line with NSLog with a yellow triangle, and disclosing it says something about passing an NSString instance as being unsecure. Can this

Re: information about provisioning and code signing - in code

2014-03-06 Thread Torsten Curdt
To answer my own question with some code: https://github.com/tcurdt/TCMobileProvision Let's you access the embedded provisioning profile at runtime. cheers, Torsten On Thu, Feb 27, 2014 at 12:46 PM, Torsten Curdt tcu...@vafer.org wrote: Hey there, I know on 10.6+ you can use

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Sean McBride
On Thu, 6 Mar 2014 15:15:49 -0800, Jens Alfke said: I remember the “Month Of Apple Bugs”** that a hacker group ran in 2007, where they published a new app or OS security vulnerability every day for month. A lot of them were caused by format-string vulnerabilities. Soon thereafter the compiler

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Greg Parker
On Mar 6, 2014, at 3:37 PM, Sean McBride s...@rogue-research.com wrote: On Thu, 6 Mar 2014 15:15:49 -0800, Jens Alfke said: I remember the “Month Of Apple Bugs”** that a hacker group ran in 2007, where they published a new app or OS security vulnerability every day for month. A lot of them

No longer existing outlet causes crash in new version of app (iOS)

2014-03-06 Thread Koen van der Drift
I'm working on a new version of my app, and while testing it against the one that is now in the store, I'm running into an *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[MyViewController 0x16e38150 setValue:forUndefinedKey:]: this class is not key value

Re: No longer existing outlet causes crash in new version of app (iOS)

2014-03-06 Thread Kyle Sluder
On Thu, Mar 6, 2014, at 04:01 PM, Koen van der Drift wrote: I'm working on a new version of my app, and while testing it against the one that is now in the store, I'm running into an *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[MyViewController 0x16e38150

Re: No longer existing outlet causes crash in new version of app (iOS)

2014-03-06 Thread Koen van der Drift
On Mar 6, 2014, at 7:15 PM, Kyle Sluder k...@ksluder.com wrote: Delete the app from your device and rebuild. I'm guessing the XIB is left over and has the same name as a UIViewController, but that view controller is now trying to set up its view in code. Since Xcode never deletes files from

Re: No longer existing outlet causes crash in new version of app (iOS)

2014-03-06 Thread Koen van der Drift
Just changing the name of the VC solved it. - Koen. On Mar 6, 2014, at 7:18 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: On Mar 6, 2014, at 7:15 PM, Kyle Sluder k...@ksluder.com wrote: Delete the app from your device and rebuild. I'm guessing the XIB is left over and has the

Re: No longer existing outlet causes crash in new version of app (iOS)

2014-03-06 Thread Kyle Sluder
On Thu, Mar 6, 2014, at 04:25 PM, Koen van der Drift wrote: Just changing the name of the VC solved it. Well, the old build compiled nib is still sitting in your build products, so it didn't really solve anything. Will this be an issue with users when they update to the new version? I don't

MODERATOR: End of Thread (was Re: NSSavePanel?)

2014-03-06 Thread Chris Hanson
This is off-topic for cocoa-dev. -- Chris Hanson, cocoa-dev co-moderator ___ 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