Re: Custom time picker

2015-12-02 Thread Jon Hull
, Jon Sent from my iPhone > On Dec 2, 2015, at 4:22 PM, Eric Dolecki <edole...@gmail.com> wrote: > > I need to create a time picker control but don't have much vertical room. So > buttons above and below to affect hours, min, am/pm are out. I was thinking > swipes up an

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-06 Thread Jon Baumgartner
On Mar 5, 2015, at 2:29 PM, Jens Alfke j...@mooseyard.com wrote: I wouldn’t expect a response from Apple in ‘only’ a month, except perhaps to notify you that it’s a duplicate. If they do fix the bug, you won’t get a notification until there’s a developer release of the OS update so

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-05 Thread Jon Baumgartner
That bug has gotten no response whatsoever from Apple. Any advice on how to proceed? On Feb 4, 2015, at 1:19 PM, Jon Baumgartner j...@bergenstreetsoftware.com wrote: I filed a radar: rdar://19716583 On 1/29/2015 10:55 AM, Kyle Sluder wrote: Even in a sandbox, you can get the user’s

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-02-04 Thread Jon Baumgartner
in a sandbox too. --Kyle Sluder On Jan 29, 2015, at 7:45 AM, Jon Baumgartner j...@bergenstreetsoftware.com wrote: I’m happy to do this, but is this really a bug? I was just thinking there might be an alternate way to accomplish this. On 1/27/2015 4:03 PM, Kyle Sluder wrote: Could

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-01-29 Thread Jon Baumgartner
I’m happy to do this, but is this really a bug? I was just thinking there might be an alternate way to accomplish this. On 1/27/2015 4:03 PM, Kyle Sluder wrote: Could you please file a Radar describing your use case and share the number here? ___

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-01-27 Thread Jon Baumgartner
Yeah. The app is specifically for copying paths, and applying various transformations to the path. Developers use it but also general users. On January 27, 2015 at 2:03:46 PM EST, Jens Alfke j...@mooseyard.com wrote:On Jan 27, 2015, at 9:20 AM, Jon Baumgartner j...@bergenstreetsoftware.com

NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-01-27 Thread Jon Baumgartner
My app uses this call, and it worked fine until I sandboxed it. The documentation for this call says: For sandboxed apps in OS X, the current home directory is not the same as the user’s home directory. For a sandboxed app, the home directory is the app’s home directory. So if you specified

Re: Trouble with services

2014-08-01 Thread Jon Baumgartner
On Aug 1, 2014, at 3:01 AM, Kyle Sluder k...@ksluder.com wrote: On Jul 31, 2014, at 9:11 PM, Ken Thomases k...@codeweavers.com wrote: You probably want lsregister. /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister First, I'd try

Re: Trouble with services

2014-08-01 Thread Jon Baumgartner
Weird. I tried that. Still no go. I ended up having to delete that archive (I didn’t need it anyway) and now it’s correctly firing up my current development copy. On Aug 1, 2014, at 11:21 AM, SevenBits sevenbitst...@gmail.com wrote: On Aug 1, 2014, at 11:18 AM, Jon Baumgartner j

Trouble with services

2014-07-31 Thread Jon Baumgartner
, it wasn’t obvious. Thanks! Jon ___ 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

Re: Anyone seen [NSCursor set] crash by calling abort()?

2013-04-11 Thread Jon Gary
At the risk of suggesting the obvious, did you test with the zombie instrument to see of you have a memory management bug unrelated to cursors? -- Jon On Apr 11, 2013, at 6:15 PM, Sean McBride s...@rogue-research.com wrote: On Thu, 11 Apr 2013 14:52:48 -0700, Quincey Morris said: I have

Re: NSSavePanel problem

2013-02-23 Thread Jon Gary
Post a crash log? Did you run with zombies on? -- Jon On Feb 23, 2013, at 6:14 PM, Peter Hudson peter.hud...@me.com wrote: Hi All I use an NSSavePanel to save data to file in HTML format. This panel is run from a button in one of the panels in the app. The whole mechanism has been

Re: NSSavePanel problem

2013-02-23 Thread Jon Gary
Just because a crash happens in an apple framework doesn't mean it's note our bug. If you can't take the time to run the code with zombies on, it's a waste of everyone else's time guessing what's going on. -- Jon On Feb 23, 2013, at 9:57 PM, Quincey Morris quinceymor

CW8021XProfile is deprecated; what to use instead?

2013-01-28 Thread Jon Sigman
I'm modifying a Mac app based in part on Apple's CoreWLANWirelessManager sample code. I'm trying to build it under 10.8 and I find that everything related to CW8021XProfile has been deprecated! The docs don't give a hint of what's replaced it. What's the new paradigm?

UIResponder differences from iOS4-iOS5

2013-01-07 Thread Jon Brooks
I found a curious difference in behavior running my app on an iOS4 device vs. running the same app on an iOS5 device. On iOS4, if I set a view (or really just a UIResponder) to be firstResponder, and then later, resignFirstResponder, there is no defined firstResponder; whatever was

Re: NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-17 Thread Jon Gary
Containers/MyBundleId/Data/Library/Application Support/MyApp/MyFolderWhereRecycleFails -- Jon Gary / Object Orienteer / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/ On Dec 14, 2012, at 6:51 PM, Mike Abdullah wrote: On 14 Dec 2012, at 21:26, Jon Gary wrote: I have a sandboxed

NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-14 Thread Jon Gary
not sure they understood the question). Any clues? -- Jon Gary / Object Orienteer / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

UIFont system font on Retina displays

2012-03-19 Thread Jon Brooks
On Retina display devices, such as the 3rd generation iPad, I found that the system font returned by [UIFont systemFontOfSize:] is a font whose family name is not included in the array of font families returned by [UIFont familyNames]. The family name that is returned is .HelveticaNeueUI

Re: Cocoa-dev Digest, Vol 9, Issue 185

2012-03-17 Thread Jon Ljunggren
G On 16 mar ibi, at 14:57, cocoa-dev-requ...@lists.apple.com wrote: Send Cocoa-dev mailing list submissions to cocoa-dev@lists.apple.com To subscribe or unsubscribe via the World Wide Web, visit Speer ubInbhttpsuu://lists.al/viburnum-dev or, via email, send a message with subject or

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Jon Sigman
]];     [scrollView addSubview:imageView];     return; } The UIScrollView UIImageView show up on the GUI, with the correct image, but gestures are ignored. What am I overlooking? From: Fritz Anderson fri...@manoverboard.org To: Jon Sigman rf_...@yahoo.com Cc: Cocoa

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Jon Sigman
I just added this:     [scrollView setContentSize:CGSizeMake(128.0,96.0)]; Now I can move the image about within the UIScrollView, but I can't pinch/zoom it. From: Eric E. Dolecki edole...@gmail.com To: Jon Sigman rf_...@yahoo.com Cc: Fritz Anderson fri

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Jon Sigman
Yep, specifying a delegate and implementing -viewForZoomingInScrollView: did the trick! (As a newb, I thought this functionality was innate in UIImageView, but...) Thanks to everyone for your help! From: Julius Oklamcak juli...@icodemonks.com To: 'Jon Sigman

iOS: Adding pinch-zoom to UIImageView

2012-01-16 Thread Jon Sigman
I have an iOS iPad app that uses a full screen UIImageView to display some png images. However, this arrangement doesn't allow the user to pinch-zoom the image. It seems to ignore gestures. I've tried embedding the UIImageView within a UIScrollView from IB (using Embed Object in Scroll View),

Re: -viewDidUnload not always called?

2011-10-14 Thread Jon Sigman
On Oct 13, 2011, at 8:02 AM, Fritz Anderson wrote: My understanding is this, a diagram I made to visualize the process, http://drowland.net/iOS%20Class/View%20Controller%20unloading.pdf Wow, that's awesome. I never understood viewController unloading before. I wish the Apple documentation

Re: -viewDidUnload not always called?

2011-10-14 Thread Jon Sigman
be working for Apple's documentation team! ;-) On Oct 14, 2011, at 8:59 AM, Jon Sigman wrote: On Oct 13, 2011, at 8:02 AM, Fritz Anderson wrote: My understanding is this, a diagram I made to visualize the process, http://drowland.net/iOS%20Class/View%20Controller%20unloading.pdf Wow

Task dispatching

2011-09-13 Thread Jon Sigman
I have a Cocoa/Foundation application running in the background that receives a 1MB block of data, processes it, and sends back a new 1MB block of data using TCP/IP over the internet. The program takes a couple of minutes to come up and initialize, so it needs to be up and stay up waiting for

Re: Task dispatching

2011-09-13 Thread Jon Sigman
? From: Scott Ribe scott_r...@elevated-dev.com To: Jon Sigman rf_...@yahoo.com Cc: Cocoa- Dev List cocoa-dev@lists.apple.com Sent: Tuesday, September 13, 2011 9:55 AM Subject: Re: Task dispatching On Sep 13, 2011, at 10:42 AM, Jon Sigman wrote: Design-wise, should I

Re: Task dispatching

2011-09-13 Thread Jon Sigman
scott_r...@elevated-dev.com To: Jon Sigman rf_...@yahoo.com Cc: Cocoa- Dev List cocoa-dev@lists.apple.com Sent: Tuesday, September 13, 2011 10:30 AM Subject: Re: Task dispatching On Sep 13, 2011, at 11:11 AM, Jon Sigman wrote: Startup involves loading a 1GB data matrix from disk into memory

Re: Task dispatching

2011-09-13 Thread Jon Sigman
I quickly wrote up a little program to test out mmap()'ing one of the 1GB files. It works, no kernel changes needed, and it only takes 0.871 secs! (51.209 secs if Time Machine is running ;)  So, I'm stunned that this would be so much faster than using individual fread() calls for each element.

Re: Task dispatching

2011-09-13 Thread Jon Sigman
). Still, this should work out, since after the initial mmap load, it's quite speedy. From: Scott Ribe scott_r...@elevated-dev.com To: Steve Sisak sgs-li...@codewell.com Cc: Jon Sigman rf_...@yahoo.com; list-cocoa-dev cocoa-dev@lists.apple.com Sent: Tuesday, September

Size of a file on disk

2011-08-31 Thread Jon Sigman
How does one determine the size of a file on disk using Cocoa?  I've looked at NSFileManager but it doesn't seem to offer any  methods for finding file attributes.  OSX 10.6.8 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Size of a file on disk

2011-08-31 Thread Jon Sigman
Many thanks to all who responded.  Somehow I didn't notice the attributes methods of NSFileManager.  I've got it working! -Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Referencing an object after sending a release message to it

2011-08-06 Thread Jon Boone
); } Is it dangerous to send the release message to p right after adding it to the array? Should I put the release at the end of the method? --jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Changing UISwitch text

2011-04-29 Thread Jon Sigman
Is there a straightforward way to change the text on the UISwitch (ON and OFF) to something else? Alternatively, is there a way for a UIButton to act like a toggle (it stays highlighted until touched again)? iOS 4.3 ___ Cocoa-dev mailing list

Re: Changing UISwitch text

2011-04-29 Thread Jon Sigman
Thanks Peter, Dave, Roger. These are all good approaches! From: Roger Dalal roger.da...@gmail.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Fri, April 29, 2011 4:41:36 PM Subject: Re: Changing UISwitch text Jon: UISwitch can

warning: cast from pointer to integer of different size

2011-04-19 Thread Jon Sigman
Basic question: Just for debugging purposes, I'm trying to print out the address of a pointer to a struct, but I can't figure out the proper way to do it (ie, satisfy the compiler warnings). OSX 10.6.7, Xcode 3.2.6 dispatch_source_t our_gcd_source; . . . printf(gcd_source:

Re: warning: cast from pointer to integer of different size

2011-04-19 Thread Jon Sigman
Thanks, David. I do recall that now. Need more coffee... From: David Duncan david.dun...@apple.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Tue, April 19, 2011 11:01:40 AM Subject: Re: warning: cast from pointer to integer of different

Injecting text into a CALayer?

2011-04-15 Thread Jon Sigman
? I'd like to label them. -Jon ___ 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

Re: Injecting text into a CALayer?

2011-04-15 Thread Jon Sigman
? Or does CAShapeLayer have that capability? From: David Duncan david.dun...@apple.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Fri, April 15, 2011 11:42:49 AM Subject: Re: Injecting text into a CALayer? On Apr 15, 2011, at 11:11 AM, Jon

Re: Injecting text into a CALayer?

2011-04-15 Thread Jon Sigman
Yes, that works splendidly! Thanks, David! From: David Duncan david.dun...@apple.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Fri, April 15, 2011 11:54:36 AM Subject: Re: Injecting text into a CALayer? Using a sublayer

UISegmentedControl -selectSegmentAtIndex:?

2011-03-21 Thread Jon Sigman
iOS 4.3. I'm using a UISegmentedControl and want to preselect one of the segments in -viewDidLoad based on the last user setting stored in defaults. But, I can't find a -selectSegmentAtIndex: method or a reasonable facsimile. How can I go about doing this?

Re: UISegmentedControl -selectSegmentAtIndex:?

2011-03-21 Thread Jon Sigman
Thanks, Luke. Somehow I was thinking that was a read-only property (selected = past tense). My bad. From: Luke the Hiesterman luket...@apple.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Mon, March 21, 2011 6:53:58 PM Subject: Re

Re: Setting a delegate on a UITextField

2011-03-07 Thread Jon Sigman
On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote: One possible approach on iOS is to implement textFieldShouldEndEditing, and return NO and put up an alert if there's a problem. Another is just to make the change yourself in textFieldDidEndEditing. See the section entitled Validating

Re: Setting a delegate on a UITextField

2011-03-07 Thread Jon Sigman
On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote: The Return key invokes textFieldShouldReturn: and does *not* automatically resign first responder ... Ah! That is the part I had been overlooking. textFieldShouldReturn is the perfect place to validate the input. However, now that I've

Re: Setting a delegate on a UITextField

2011-03-07 Thread Jon Sigman
Matt, you are quite correct. It helps to simplify the case, and then build on that foundation. I had too many things going on and couldn't see the forest for the trees. Thanks! From: Matt Neuburg m...@tidbits.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev

Setting a delegate on a UITextField

2011-03-03 Thread Jon Sigman
I'm trying to set up a delegate on a UITextField so I can know when the user has finished editing. My delegate is my main view controller: @interface MainViewController : UIViewController UITextFieldDelegate { . . . } and in the implementation file I have: - (void)

Re: Setting a delegate on a UITextField

2011-03-03 Thread Jon Sigman
as finished editing? When the user touches the Return button on the keypad. Is that a poor assumption? Thanks! -Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Setting a delegate on a UITextField

2011-03-03 Thread Jon Sigman
Okay, part II: Is there a way to allow only a certain number of characters in a UITextField? Should this be done in the -textFieldDidEndEditing delegate callback, with an alert to the user, or just truncating the field, or ...? -Jon

Canceling all touches

2011-02-28 Thread Jon Brooks
.) Thanks in advance for any advice. Regards, Jon Brooks ___ 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

iOS: Calling up numeric keypad

2011-02-22 Thread Jon Sigman
I have a UITextField that should accept only numerics. Is there a way to set the textfield so that when the user touches it, the numeric keypad comes up instead of the alpha keypad? iOS 4.2.1 ___ Cocoa-dev mailing list

Re: iOS: Calling up numeric keypad

2011-02-22 Thread Jon Sigman
That's awesome. I never knew you could do that. Works great! Thanks Conrad and Laurent! From: Conrad Shultz con...@synthetiqsolutions.com To: Laurent Daudelin laur...@nemesys-soft.com Cc: Jon Sigman rf_...@yahoo.com; cocoa-dev@lists.apple.com Sent: Tue

Re: Trouble with design pattern

2011-02-18 Thread Jon Gary
are calling methods on your document, you're doing it wrong. Your views should operate on data provided by your document (preferably via bindings) and by actions your views call into your document (or window controller, depending upon how you've designed your app). -- Jon Gary / Object Orienteer

awakeFromNib on main thread?

2011-02-14 Thread Jon Sigman
I did a search of the docs but didn't find this question addressed... During the object instantiation phase of app startup, is every -awakeFromNib method guaranteed to be called on the app's main thread? ___ Cocoa-dev mailing list

Re: awakeFromNib on main thread?

2011-02-14 Thread Jon Sigman
On Feb 14, 2011, at 5:41 PM, Seth Willits wrote: On Feb 14, 2011, at 4:57 PM, Jon Sigman wrote: I did a search of the docs but didn't find this question addressed... During the object instantiation phase of app startup, is every -awakeFromNib method guaranteed to be called on the app's main

Re: NSDictionary key types

2011-01-07 Thread Jon Sigman
The underlying issue I was having was how to know when different objects used as keys might be reasonably expected to match, especially if they weren't generated the same way (as with [NSNumber stringValue] and [NSString ...]). I guess the long answer is its complicated, and the short answer

NSDictionary key types

2011-01-06 Thread Jon Sigman
I'm a bit new to Cocoa, and I'm trying to get my head around NSDictionary. In the Apple documentation it says, Each entry consists of one object that represents the key and a second object that is the key's value. ... In general, a key can be any object, but note that when using key-value

Re: NSDictionary key types

2011-01-06 Thread Jon Sigman
Zitzmann n...@chronosnet.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Thu, January 6, 2011 12:40:00 PM Subject: Re: NSDictionary key types On Jan 6, 2011, at 1:10 PM, Jon Sigman wrote: I'm a bit new to Cocoa, and I'm trying to get my head around NSDictionary

Re: NSDictionary key types

2011-01-06 Thread Jon Sigman
On Jan 6, 2011, at 1:50 PM, Nick Zitzmann wrote: So are the following two equivalent? id myKey = [NSNumber numberWithInt:8760]; if (myObj = [myDict objectForKey:myKey]) { . . . do something } and id myKey = @8760; if (myObj = [myDict objectForKey:myKey]) { . . .

Re: NSDictionary key types

2011-01-06 Thread Jon Sigman
From: Nick Zitzmann n...@chronosnet.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Thu, January 6, 2011 1:04:47 PM Subject: Re: NSDictionary key types On Jan 6, 2011, at 1:04 PM, Nick Zitzmann wrote: On Jan 6, 2011, at 2:03 PM, Jon

Re: NSDictionary key types

2011-01-06 Thread Jon Sigman
On Jan 6, 2011, at 1:24 PM, David Duncan wrote: The short of it is that its a value that allows you to quickly tell if something is worth looking at more closely for equality. As a real world example a hash code is equivalent to saying this object is short, this object is tall without

Question regarding popoverControllerDidDismissPopover: delegate method

2011-01-05 Thread Jon Brooks
will be fine? Is this a bug that the popover is still fielding a touch after the delegate method popoverControllerDidDismissPopover: is called? Thanks in advance for any advice. Jon Brooks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Implementing async notifications

2010-12-10 Thread Jon Sigman
to achieve async notification processing? -Jon ___ 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

Keeping track of state in Cocoa

2010-12-01 Thread Jon Sigman
How does one track state in Cocoa? I have a message receiver which manages a number of TCP-connected processes (100 or so). However, I need to keep track of the state of each connected process (registered, busy, waiting, etc) to know what operations are 'legal' or appropriate for dealing with

Re: Keeping track of state in Cocoa

2010-12-01 Thread Jon Sigman
So instead of having struct arrays, etc, I replace all that with a custom object, an instance of which represents each process, and manage them by associating them with different state collections as appropriate. Thanks, I think that's doable.

Foundation vs Core Foundation

2010-11-29 Thread Jon Sigman
'. This would be for Snow Leopard. Thanks, -Jon ___ 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

Re: Foundation vs Core Foundation

2010-11-29 Thread Jon Sigman
It sounds like Foundation is the safer way to go, especially to safeguard future functionality expansion. I take it Foundation does not contain Core Foundation, but at least they're not mutually exclusive? If I go Foundation, I can include Core Foundation as well, should I want something in

Re: $ to Jobs ?

2010-11-23 Thread Jon Sigman
On Nov 23, 2010, at 2:25 PM, k...@highrolls.net wrote: If the app is purchased will it expire as well on a user device? Of course not. The expiry date is only for development devices. It will work indefinitely on a user's device. ___

NSView exitFullScreenModeWithOptions results in dimmed menus in document based app

2010-11-22 Thread Jon Gilkison
a layer backed view and they didn't work or flickered too bad. Any pointers on where to look? Thanks, Jon. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Jon Gilkison
- NSFileHandleReadCompletionNotification It's been stumping me for a few days. The sample app and source is at: http://sessionsplus.com/TaskTester.zip Thanks! Jon.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Jon Gilkison
That was it, though further up the chain. The object that created/owned the task was being GC'd away. Thanks Bill and Quincy! On Nov 16, 2010, at 12:53 PM, Bill Bumgarner wrote: The issue [I'd bet -- don't have time to dive deep] is that you don't have a strong reference to the Tasker

Re: [iPhone] Toolbar button and Touch Down

2010-11-16 Thread Jon Sigman
Yeah, UIToolbars are odd beasts. Try this out: place a UISwitch in a toolbar, hook it up to an IBAction, and you get... nothing. It switches from ON to OFF and back, but the action never fires. Bug? Feature? Not exactly 'standard and easy' imho. Maybe the 'next major release' will address this.

Re: [iPhone] Toolbar button and Touch Down

2010-11-12 Thread Jon Sigman
I struggled this too, but without solution. It seems that toolbar 'buttons' aren't real buttons -- they're class UIBarButtonItem from UIBarItem from NSObject. Since they're not really buttons, there doesn't appear any way to modify their behavior. If there is a way, I'd like to know, too...

Embedding a system preference pane

2010-08-20 Thread Jon Guy
Hi I'm trying to embed a couple of the system pref panes into an app by following the Apple documented method, here's basically whats going on: NSBundle *bundle = [NSBundle bundleWithPath:@/System/Library/PreferencePanes/SharingPref.prefPane]; Class principalClass = [bundle principalClass];

NSResponder action messages not being received correctly

2010-07-16 Thread Jon Nall
I have created a tiny project that consists of an NSWindowController subclass which opens its window during the app delegate's applicationDidFinishLaunching: method. There are no custom NSWindow or NSView subclasses. I'm trying to override various NSResponder action messages. Some work, some

NSStream Questions

2010-07-16 Thread Jon Loeliger
Folks, I'm a bit new to Cocoa/iPhone programming, so I apologize if this is Ye Olde Question Again. Googling hasn't quite anwered my quesion yet... I'm writing a network server that needs to accept many simultaneous client connections and keep track of them. I've written the base server parts,

Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Jon Pugh
. - (void)endEditingFor:(id)object Jon ___ 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

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jon Pugh
. Unfortunately, FSRefs don't survive the common practice of manually replacing the file in the Finder. This *does* change the file id and invalidates the FSRef. I had to change to explicitly saving an AliasRecord in an NSData to keep track of a file properly. Jon

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jon Pugh
At 8:43 AM -0700 4/6/10, Jon Pugh wrote: I had to change to explicitly saving an AliasRecord in an NSData to keep track of a file properly. I should probably clean up and share my code too. This uses an alias relative to your home folder. The alias is stored in NSUserDefaults under

Re: [Xcode 3.1.4] Step Into broken on Leopard

2010-03-25 Thread Jon Pugh
it looks like 3.1.3 is the version you want and you just went one minor release too far. Jon ___ 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: code folding in NSTextView

2010-03-24 Thread Jon Pugh
could be folded, in order to make them collapsible, but I think it has the basics of what you need. Jon ___ 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: Trouble forking my project

2010-03-24 Thread Jon Pugh
people's disruptive changes until you are ready for them. That said, I'm still using svn myself, but I'm planning on switching. ;) Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Details and the concepts related to the Nib Window

2010-03-23 Thread Jon Pugh
called is awakeFromNib. That's the place to put a breakpoint where you can see the things you created in Interface Builder. Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSPredicate to exclude specific elements??

2010-03-21 Thread Jon Pugh
an exception.. what am I missing?? eg: @(SELF ALL *) NOT (SELF like[c] %@) @NOT (SELF like[c] %@) @SELF !like[c] %@ @SELF NOT like[c] %@ for example give me an NSInvalidArgumentException I have used @%K CONTAINS[cd] %@ successfully. I would expect @%K NOT CONTAINS[cd] %@ to also work. Jon

Re: NSString after an UIAlertView..

2010-03-19 Thread jon
in the string) just before an instance of UIAlertView is created and then released, i look in the string afterward and it is out of scope. Jon. On Mar 19, 2010, at 11:06 AM, Fritz Anderson wrote: I am stymied by imprecision in your questions

NSString after an UIAlertView..

2010-03-18 Thread Jon
is:what is the best way to keep strings around that i deem important enough to still have them after a call to UIAlertView.?? Jon. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

MoviePlayer_iPhone sample code in XCode 3.2

2010-03-09 Thread Jon
I just tried the MoviePlayer_iPhone sample code in simulator 3.2, (i believe i am running beta 2) while it works if you set it to 3.1, as soon as you set it to 3.2, the local' movie no longer plays? can someone confirm, and a possible reason/solution? thanks in advance. Jon

Re: Custom View in Toolbar

2010-03-08 Thread Jon Pugh
At 9:56 AM -0700 3/8/10, David Blanton wrote: So I ask again, how does one display a custom view containing controls in a toolbar? Typically, all views are told to draw themselves via - [view setNeedsDisplay: YES] Jon ___ Cocoa-dev mailing list

Re: Weird Bug Report on 10.5

2010-03-08 Thread Jon Pugh
Jon ___ 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 Subscription: http://lists.apple.com

UIView as opposed to UIViewController...

2010-03-06 Thread Jon
the drawRect while in the controller, so what would you do in the UIView? any of that make sense? thanks in advance, Jon. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Getting relative day-of-week name?

2010-02-24 Thread Jon Hull
it back). You should be able to figure it out for yourself though... it is only 2 methods IIRC. Might be a little different with the new date objects though, haven't looked at it in a while (I think you have to use unicode syntax now, but the theory should be the same). Thanks, Jon On Wed, 24

WebView Loading Images from Local Filesystem

2010-01-31 Thread Jon Buys
] openURL:[request URL]]; } I'm sure that once again I'm missing something basic, but any pointers in the right direction are appreciated. Thanks, -- Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

NSTextView Drag and Drop

2010-01-30 Thread Jon Buys
barking up the wrong tree here. Any pointers in the right direction are appreciated. Thanks, Jon ___ 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: Accessing Variables from Multiple NIBs

2010-01-16 Thread Jon Buys
to the IBAction in the File's Owner. It's great to solve my own problems, I just wish I'd do it before sending out to Cocoa-Dev for help! -- Jon On Jan 16, 2010, at 6:45 PM, Jonathan Buys wrote: Hello, I have an AppController that looks like this: AppController.h: #import Cocoa

Core Data Threading problem

2009-11-14 Thread Jon Hull
as to why it is happening... though I am not sure what that reason is. I am definitely missing something here. Any idea what might be happening? Thanks, Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSCoder and CGColorRef

2009-11-05 Thread Jon Nall
I have a helper function that encodes the component float values and then the decoder creates a CGColorRef back from those. +(void)encodeColor:(CGColorRef)theColor withCoder:(NSCoder*)encoder withKey:(NSString*)theKey { if(theColor != nil) { const CGFloat*

Re: Moving from standalone apps to some internet related programming

2009-10-26 Thread Jon Nall
On Oct 26, 2009, at 3:50 PM, Nick Rogers wrote: Hi, In my some 2 yrs of cocoa programming with cocoa, I have been able to make a main app (which is selling) and a few related small apps. Now I have to make a small utility that would download the appropriate (best) version of main app that

kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2009-10-25 Thread Jon Nall
Hi. I just joined the mailing list and tried to post this last week, but never saw it show up. I'm trying again. I'm getting the message below printed to the console from my application and hope someone knows what might be going on. When this happens I have a view with an NSProgressIndicator

kCGErrorIllegalArgument: CGSUnionRegionWithRect

2009-10-23 Thread Jon Nall
Hi. I'm getting the message below printed to the console from my application and hope someone knows what might be going on. When this happens I have a view with an NSProgressIndicator which is updating. In my view's drawRect:, I modify the frame of the progress indicator and draw an

Re: unsleep the display programatically?

2009-10-19 Thread jon
that will work, because that will remind them to change that preference, thanks for doing that. Jon. On Oct 19, 2009, at 1:13 AM, Mark Ritchie wrote: After a short time of no password being entered, the screen will go back to sleep

unsleep the display programatically?

2009-10-18 Thread jon
can you unsleep the display programatically? i haven't found a method yet for doing it? Jon. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

  1   2   3   >