Re: WTF is happening?

2014-12-13 Thread Gary L. Wade
ect nor NSProxy, then change your design. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 13, 2014, at 11:40 AM, Maxthon Chan wrote: > > Ain’t work! Will crash if an Object derivative showed up. > > I am scanning ALL loaded classes and only subclasses of a

Re: Displaying a scaling, relative time or date

2015-01-08 Thread Gary L. Wade
When it comes to any localized date or number formatters, see if ICU supports it, especially the included version on the earlier OS you need to support. If not but a later one does, you could just include it in your app. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Ja

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Gary L. Wade
If you’re wanting to look at all the globals in your project in one place, go to the Symbol Navigator and make sure the Class/Protocol filter is turned off and the Project-Defined filter is turned on. This will give you easy access to your project-defined globals. -- Gary L. Wade http

Re: Inserting a task into the run loop

2015-03-22 Thread Gary L. Wade
any of these, even your original runloop design, might add the wrong constraints to your system. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Mar 22, 2015, at 4:28 PM, Graham Cox wrote: > > >> On 23 Mar 2015, at 9:52 am, Ken Thomases wrote: >> &

Re: NSDocumentTitlebarPopoverViewController zombie on Yosemite

2015-05-28 Thread Gary L. Wade
We saw the same issue starting with 10.10.3 and continuing through current 10.10.4 builds. Write up a radar and reference radar://problem/20368338 as a duplicate instance. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On May 28, 2015, at 11:34 AM, Matthew LeRoy wr

Re: Language options: Objective-C, Swift, C or C++?

2015-06-12 Thread Gary L. Wade
s used for blocks is due to it being the only non-ambiguous character that could be used. Besides, in Swift, we can now have variable names in Klingon script! Well, when Klingon is finally added to Unicode, that is. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 12, 2015,

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Gary L. Wade
to a variety of reasons, but I will soon. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Jun 13, 2015, at 4:42 PM, Carl Hoefs > wrote: > > Bingo. Even after reading all the posts in this thread, I still don’t know > what problem Swift addresses, and no one s

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Gary L. Wade
And that's an example of how there's always consequences to our actions. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Gary L. Wade
And that's an example of how there's always consequences to our actions. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: selectText of NSTextField on focus

2015-07-06 Thread Gary L. Wade
You want to select the text using the associated text view of the NSTextField control. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jul 6, 2015, at 10:54 AM, Richard Charles wrote: > > >> On Jul 6, 2015, at 10:15 AM, Richard Charles wrote: >> &g

Re: Edit menu localisation, default application menu

2015-07-11 Thread Gary L. Wade
ime humorously label On and Off with County (I imagined a Monty Python skit could from that). -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: PSA: floor(NSFoundationVersionNumber) doesn't work with Yosemite or later

2015-07-11 Thread Gary L. Wade
ccording to their formatting (build numbers with embedded letters, dotted values, etc.) and stores them in an NSIndexPath making comparisons between two versions very easy. Whenever I encounter a new version number format, I add a new parser and string formatter tied to a new enum. -- Ga

Re: Just a request for a quick sanity check please.

2015-07-14 Thread Gary L. Wade
realm. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jul 14, 2015, at 8:27 AM, Alex Zavatone wrote: > > I'm looking at some Cocoa spaghetti that seems to violate all the laws or > reason and I'd just appreciate some verification that "there is no

Re: C Sharp?

2015-07-16 Thread Gary L. Wade
, and our company and Apple were criticized royally in the press. Don't be that app. C# makes apps fall flat. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jul 16, 2015, at 1:14 PM, Jonathan Mitchell > wrote: > > >> On 16 Jul 2015, at 19:56, Glenn

Re: C Sharp?

2015-07-16 Thread Gary L. Wade
Actually the requirements are for both Mac and iOS; the app I referred to was on the Mac App Store. But, if that's not an issue, then that's okay. I just wanted to point that out in case it was a potentiality. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jul

Re: C Sharp?

2015-07-17 Thread Gary L. Wade
Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jul 17, 2015, at 8:26 AM, Jens Alfke wrote: > > >> On 16 Jul 2015, at 21:26, Gary L. Wade > <mailto:garyw...@desisoftsystems.com>> wrote: >> >> Just keep in mind that according to Ap

Re: C Sharp?

2015-07-17 Thread Gary L. Wade
That link isn't very useful. It pretty much regurgitates what Apple has already published and doesn't address the issue of rejection. Nevertheless, it's not my concern anymore, but I've forwarded your statements on to the team for further evaluation. -- Gary L. Wade (Sent

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Gary L. Wade
Depending on your design, why not just use an NSSplitView to do all that for you? -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Gary L. Wade
When the file arrives, verify that the contents of it have also arrived. It's possible you may just be processing that a file was created but nothing yet has been put into it. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Jul 26, 2015, at 2:28 PM, Robert Marti

Re: Xcode 6.4 on the Developer download site.

2015-08-07 Thread Gary L. Wade
Be sure you have Developer Tools selected as a filter. For some reason, versions after than 6.1.1 were not tagged for iOS or OS X. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Aug 7, 2015, at 1:27 PM, Alex Zavatone wrote: > > Yeah, no idea. I downloaded

Re: Tech update avoiding legacy code

2015-08-14 Thread Gary L. Wade
pdate being the final reason to upgrade their computer or OS. Don't assume they won't, just ask, or just tell them the next version will require such-and-such OS X and leave it up to them for the next step. -- Gary L. Wade (Sent from my iPhone) http://w

Re: why use pow(x, 2)?

2009-11-02 Thread Gary L. Wade
On 11/02/2009 12:37 PM, "Luke the Hiesterman" wrote: > Would it really be that much faster? I don't know exactly how pow() is > implemented, but I assume it's basically just a loop of > multiplications, in which case it would basically be the same as x*x > in this case, since it would exit after

Re: Callback when OS delivers console msg for my process?

2009-11-13 Thread Gary L. Wade
Have you tried NSImage's delegate methods for loading status? On Nov 13, 2009, at 11:23 AM, Trygve Inda wrote: > I use: > > imageWithContentsOfFile:@"a.jpg" > > And sometime it generates a console message: > > Corrupt JPEG data: premature end of data segment > > How can I use an observer/exce

Re: Where are the interface builder components?

2009-11-19 Thread Gary L. Wade
On 11/19/2009 5:45 PM, "Sandro Noël" wrote: > This thread of emails want not intended to bash Apple for not doing their > work, I just needed to understand why the components are not already available > in the toolbox when it seemed logical to me that they should of been there > with the release

Re: extracting the mantissa for a NSDecimal

2009-11-20 Thread Gary L. Wade
On 11/20/2009 10:49 AM, "Jens Alfke" wrote: > > On Nov 20, 2009, at 9:53 AM, Greg Guerin wrote: > >> The representation stored in the NSData may be endian-sensitive. If >> the NSDictionary contents might cross architectures, that could be >> problematic. > > s/may be/is/ > s/could be/will be/

Re: What gets automatically localized?

2010-04-08 Thread Gary L. Wade
I don't know if this is documented somewhere, but if all you're needing is an actual string to copy into your project, you could try checking the frameworks' resources on your disk. If your project is linking against the actual runtime frameworks rather than one of the SDK versions, try doing a "F

Re: iPhone: A memory leak I can't explain

2010-04-15 Thread Gary L. Wade
David If you have any influence, it would be REALLY nice to allow Instruments to copy the leak contents section as well as being able to view the data in alternate formats. If it can be expedited, my bug report for this request is rdar://7776006 On 04/15/2010 10:42 AM, "David Duncan" wrote: >

Re: Determining preferred localizations

2010-04-21 Thread Gary L. Wade
The list you are getting is a set of preferred localizations, so when trying to get a resource from the first one, if not available, will go on to the next one and so forth. You should utilize the localization-aware methods to handle getting resources rather than trying to manage this yourself. T

Re: Determining preferred localizations

2010-04-21 Thread Gary L. Wade
"nb_NO" "nb" "fr_FR" "fr" "pt_BR" "pt_PT" "pt" "zh_CN" "es_ES" "es" "ja_JP" "ja" "ru_RU" "ru" "sv_

Re: NSURLConnection Crashes : Mac OS 10.6.3 Edition! (Was: Async NSURLConnection...)

2010-04-22 Thread Gary L. Wade
Instruments adds some extra safeguarding to some of their tools, so you should whittle down your functionality until you know this-or-that code will cause or not cause the crash, depending on inclusion. It's possible what you're seeing is a side-effect that is set up elsewhere and dies in a differ

Re: menu madness with retain count

2010-04-27 Thread Gary L. Wade
On 04/27/2010 1:58 PM, "Bill Bumgarner" wrote: > Frankly, the -retainCount method should be deprecated and, eventually, > removed. I wouldn't go THAT far; after all, when you're tracking a memory leak, checking your influence on the retain count is important to your investigation. Hopefully tha

Re: menu madness with retain count

2010-04-27 Thread Gary L. Wade
On 04/27/2010 2:12 PM, "Bill Bumgarner" wrote: > > On Apr 27, 2010, at 2:09 PM, Gary L. Wade wrote: > >> On 04/27/2010 1:58 PM, "Bill Bumgarner" wrote: >> >>> Frankly, the -retainCount method should be deprecated and, eventually, >>&

Re: menu madness with retain count

2010-04-27 Thread Gary L. Wade
On 04/27/2010 2:27 PM, "Shawn Erickson" wrote: > On Tue, Apr 27, 2010 at 2:22 PM, Gary L. Wade > wrote: > >> Yes, but how would you use those to determine why an Apple framework now >> chooses to retain a delegate (I'm referring to one particular one I >

Re: menu madness with retain count

2010-04-27 Thread Gary L. Wade
On 04/27/2010 2:46 PM, "Shawn Erickson" wrote: [ removed lots of bad assumptions by Shawn ] Shawn, it is apparent your understanding of reality is flawed when it comes to my efforts to track down the bug in Apple's code, so please go away. This thread is over. _

Re: NSPopupButtons work, but not in hierarchical mode, what am I missing here ?

2010-05-07 Thread Gary L. Wade
Try a different UI approach. One thing to consider is using an NSBrowser if you have lots of upper-level options and a good number of sub items and want a cascading list where the leaf item is just a choice rather than a command. If you want commands but have a small number of upper-level options

Re: NSXMLParser initWIthData - Encoding?

2010-05-21 Thread Gary L. Wade
bit, 8-bit, interlaced, etc. On 05/21/2010 10:34 AM, "Patrick Rutkowski" wrote: > I really hope you're joking. > > Do you really not see that it's completely non-obvious if it's supposed to be > UTF-8 or UTF-16? > > -Patrick > > On May 21, 201

Re: How to Create Auto-resize TableView or NSTextField?

2010-06-14 Thread Gary L. Wade
Try "connecting the dots" (figuratively and literally) between NSTextView and NSDecimalTabStopType. On 06/14/2010 6:24 AM, "John Gordon" wrote: > All, > > I am tasked with creating a receipt for printing purposes, imagine a grocery > receipt: > > Item 1$5 > Item 2$5.95

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

2011-08-05 Thread Gary L. Wade
In the absence of something intrinsic, a developer could use something like the thread dictionary. I've not utilized it myself, but you could create a mutable dictionary where each key is a class name and the object would encapsulate that class's variables. - Gary L. Wade (Sent from

Re: File Copy With Progress?

2011-08-11 Thread Gary L. Wade
Not that I've found, and since that API leaked memory from 10.6 to 10.6.6 (fixed in 10.6.7), I even considered writing an observer thread to track progress—thousands of copy operations add up. - Gary L. Wade (Sent from my iPhone) On Aug 11, 2011, at 6:22 PM, Todd Freese wrote: > Is

Re: strategies for storing NSDocument additional meta-data

2011-08-28 Thread Gary L. Wade
. - Gary L. Wade (Sent from my iPhone) On Aug 28, 2011, at 12:42 AM, Martin Hewitson wrote: > Dear list, > > I've been scratching my head for a while on this. Suppose you have an > NSDocument app like TextEdit which just allows the user to edit a text file. > Now suppose there

Re: Size of a file on disk

2011-08-31 Thread Gary L. Wade
If all you care about is the logical size of the datafork of a file, NSFileManager's method attributesOfItemAtPath:error: will give you a dictionary, but if you want to factor in the physical size, resource fork, or extended attributes, you'll need to use a lower-level API, such as FSGetCatalogInfo

Re: How to blink with a focus ring of the text box?

2011-10-06 Thread Gary L. Wade
I'm guessing you're wanting this for invalid characters as well as exceeded number of characters? It sounds like an intriguing extension to the UI. It might be easier to flash a red translucent overlay on the field contents instead. -- Gary L. Wade (Sent from my iPhone) http://www.ga

Re: Tool Tip Format

2011-10-24 Thread Gary L. Wade
Hold down the option key while pressing the return key to embed returns in IB tool tips. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Oct 24, 2011, at 3:10 PM, koko wrote: > I resorted to setting the tool tip in code and it works ok ... I just wanted > to do it in IB

Re: Problems with runModalForWindow, looking for alternatives

2011-11-01 Thread Gary L. Wade
Did you try calling stopModal or one of its variants before releasing it? And, did you release the window rather than dealloc'ing it? Try those to get rid of your crash. -- Gary L. Wade http://www.garywade.com/ On 11/01/2011 11:41 AM, "Vojtěch Meluzín" wrote: >But the ret

Re: Localization and Regions

2011-11-07 Thread Gary L. Wade
ic locale. Naturally, such an argument should be voiced as a radar feature request. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Nov 7, 2011, at 10:31 PM, "Gerriet M. Denkmann" wrote: > Assuming that I have the following language preferences (System Preferences

Re: About iVars declaration and property

2011-11-16 Thread Gary L. Wade
" > as well as that programmer time is too valuable to optimize. I haven't really been following this, but there are definitely good insights in your response. To add to your comment, premature is in the timing of the developer, and it never hurts to be thinking along those lines. -- G

Re: Account validation in CocoaTouch for the purchased app

2011-12-22 Thread Gary L. Wade
nor is there any requirement that they be changed. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Code error in Your First Mac App tutorial..

2011-12-29 Thread Gary L. Wade
ore, you could make all these look the same although they would still behave as described. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Dec 29, 2011, at 6:07 PM, Peter Teeson wrote: > Thanks for your reply Ken. But I still don't understand. See bottom post. > > On

Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?

2012-02-15 Thread Gary L. Wade
ld be really resource-intensive, especially in a heavy-object-usage process if turned on for every object, but it could be turned on only for objects of a particular class in your scenario. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Feb 15, 2012, at 8:12 AM, Sean McBride wrote:

Re: Localization for nibs

2012-02-23 Thread Gary L. Wade
e table name and key rather than the desired string. Once you've done the heavy lifting of defining, parsing, and sizing with the key paths, this method works beautifully. You can still add the default language values within each text field or control for visual identification within Interface Buil

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-25 Thread Gary L. Wade
On Feb 25, 2012, at 7:56 AM, Kyle Sluder wrote: > …converting a pointer to integer is not guaranteed to result in a > representation that fits in any size of integer… You can use uintptr_t for such purposes, which is supposed to be defined in stdint.h. -- Gary L. Wade (Sent from my

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-25 Thread Gary L. Wade
On Feb 25, 2012, at 6:29 AM, Scott Ribe wrote: > (!0) evaluates to 1. I've seen it evaluate to -1 in one compiler some time back when stored in a signed integer bit field variable. -- Gary L. Wade (Sent from my iPhone) http://www.gary

Re: How to get volume information

2011-02-14 Thread Gary L. Wade
Look at the Disk Arbitration framework. - Gary L. Wade (Sent from my iPhone) On Feb 14, 2011, at 5:46 AM, "Abhijeet Singh" wrote: > Hi,In my application 1. I want to check whether my application is running > from CD (removable media) or from hard disk.I dont want to allow my u

Re: IB Plugins & XCode 4

2011-03-06 Thread Gary L. Wade
I'm not disagreeing about the NDA, but Xcode 4 is covered in the just-released book iOS SDK Programming: A Beginner's Guide by Brannan and Ward, which I saw at B&N last night. - Gary L. Wade (Sent from my iPhone) On Mar 6, 2011, at 9:21 AM, Kyle Sluder wrote: > Xcode 4

Re: Remove characters from string

2011-03-17 Thread Gary L. Wade
Is it possible you're assuming text being given to you is in ASCII format but is actually in UTF-8 or some other encoding? Try looking at the text you have in other encodings before trying to remove characters. On 03/17/2011 6:03 AM, "Heizer, Charles" wrote: >Hello, >I would like to know how to

Re: Remove characters from string

2011-03-18 Thread Gary L. Wade
In that case, you should determine what encoding your web page is being displayed in and convert your NSString to that encoding. If it's in UTF8, you can use UTF8String; otherwise, consider dataUsingEncoding: or related messages to see if that will do what you need. - Gary L. Wade (Sent

Re: Quick way to find is a path is contained in another path?

2011-03-18 Thread Gary L. Wade
If you're not concerned about mount-path inclusion, where Library may be on another volume but mounted at that point, use rangeOfString:options:range: with an anchored search option and range consisting of the full length of the laurent-ending string. You have three possible results: not found (no

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-24 Thread Gary L. Wade
-progress status, but I held off until that APIs memory leaks were fixed (which became bad when copying a few thousand files), and it was fixed in 10.6.7 (it was present in all of 10.6 up to 10.6.6). - Gary L. Wade (Sent from my iPad) On Mar 23, 2011, at 11:14 PM, Laurent Daudelin wrote: >

Re: copyPath:toPath:handler: more reliable than copyItemAtPath:toPath:error: ???

2011-03-25 Thread Gary L. Wade
You may have missed this point in my previous replies about this, but have you identified anything in common with the objects that did not preserve the modification dates, such as were they folders, symbolic links, aliases, plain-old-files? Remember my mentioning how symbolic links throw a kink in

Re: Can't keep untitled windows from opening!

2011-03-31 Thread Gary L. Wade
These should be in the app delegate. - Gary L. Wade (Sent from my iPhone) On Mar 31, 2011, at 9:25 AM, Carlos Eduardo Mello wrote: > Hi everyone, > > I've implemented both methods bellow, but my document-based app still opens > untitled windows at start-up and when reactiva

Re: Can't keep untitled windows from opening!

2011-03-31 Thread Gary L. Wade
Which document or document type would you expect to speak for the app? Only GIFs, JPEGs, RTFs, or should everyone have a say? What happens when there is NO document? Who is the app's delegate in that case? - Gary L. Wade (Sent from my iPhone) On Mar 31, 2011, at 9:49 AM, Carlos Eduardo

Re: file done writing?

2011-04-10 Thread Gary L. Wade
If you have full control of both applications, try making the writer do its work on a temporary file and move it in place when done. Look at the atomic writing messages that do a flavor of this. You might find the FSEvents mechanism something to consider if you're watching a dump folder where the

Re: Anybody using NSFileManager here?

2011-04-14 Thread Gary L. Wade
The documentation sounds more like it's a convenience method for checking the Unix permissions for deleting the file rather than the HFS locked setting. If you want to consider another non-HFS-aware issue in NSFileManager, the file size info you get from the relevant message only returns the size

Re: renaming directories and moving files into them (NSFileManager)

2011-04-15 Thread Gary L. Wade
ith NSFileManager, I can usually work around those with FSRefs and CoreOS routines (Files.h). - Gary L. Wade (Sent from my iPhone) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: RunLoop Tutorials

2011-05-16 Thread Gary L. Wade
Read this and use the examples referenced at the bottom of each method description: On 05/16/2011 1:07 PM, "Bing Li" wrote: >Dear Alex and Matt, > >Since I need to imp

Re: NSSlider's mouseDown,mouseUp,mouseDrag - process separately

2011-05-18 Thread Gary L. Wade
You could use [NSApp currentEvent] if you really want the event, but if you want to do something else while tracking the mouse, you might want to consider overriding NSCell method -startTrackingAt:inView: and those related to it. On 05/18/2011 4:00 AM, "Nick" wrote: >Hello > >I have a slider, an

Re: XML Resource Release

2011-05-20 Thread Gary L. Wade
In your Xcode text window, hold down the option key and double click on NSString. You will be given the option of viewing an overview of the class. Click on the icon in the upper right side of the window that looks like a book. This will show you a view of the documentation for NSString. When l

Re: How to force launch of new instance of application?

2011-05-24 Thread Gary L. Wade
Sandboxing may give you the option you really want. Look at the way Google's Chrome and WebKit 2 do their plugins. - Gary L. Wade (Sent from my iPhone) On May 24, 2011, at 9:13 AM, Jay Reynolds Freeman wrote: > I would like to set things up for my application so that every > ti

Re: How to force launch of new instance of application?

2011-05-24 Thread Gary L. Wade
>program at a time, and the Scheme interpreter itself can only run one >world at a time, hence the requirement. > >-- Jay Reynolds Freeman >- >jay_reynolds_free...@mac.com >http://web.mac.com/jay_reynolds_freeman (personal web site) > > >On May 24

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread Gary L. Wade
On 31/05/2011, at 12:03 AM, julius wrote: > has the potential to create problems if it skips one's mind On 05/30/2011 8:40 AM, "Roland King" wrote: > Whist seeing your side... You know, we could really take this to the extreme and I could get upset that Roland started talking about a card gam

Re: Resizing custom subclassed NSTextView

2011-06-08 Thread Gary L. Wade
rom memory, though, but that should get you going in the right direction. You shouldn't need to subclass NSTextField to do this. - Gary L. Wade (Sent from my iPad) On Jun 6, 2011, at 3:29 PM, Joe White wrote: > Hi, > > I currently have a custom subclassed NSTextView as a subview

Re: After Autoreleasing Still Getting Leaked

2011-06-15 Thread Gary L. Wade
explain to a non-programmer. - Gary L. Wade (Sent from my iPhone) On Jun 15, 2011, at 9:02 AM, Bing Li wrote: > Dear all, > > I got a problem which confused me. The following method is put into > NSOperationQueue so that it can run asynchronously. The method received data > fro

Re: NSURLConnection

2011-06-26 Thread Gary L. Wade
synchronous option really only makes sense on a secondary thread while the asynchronous option can be fully performed on the main thread. - Gary L. Wade (Sent from my iPhone) On Jun 26, 2011, at 9:37 AM, R wrote: > Any opinions on which approach is better. > > >

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Gary L. Wade
On 07/08/2011 5:39 AM, "G S" wrote: >I've imported where I declare the MKMapView... Do you mean this literally? If you put an import within an interface's variables section, I'd be surprised you don't find lots of other errors. Try showing your exact code. __

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Gary L. Wade
On 07/08/2011 4:27 PM, "G S" wrote: >First of all, thanks a lot for the responses. >I have... >Yep, identical. >Now let's ... >I link in everything they do. >I refer to math.h ... >I've tried ... Still no dice. I've occasionally seen problems similar to this where the only recourse was either a

Re: getting last accessed date

2011-07-09 Thread Gary L. Wade
Using Core Services or OS, you can call FSGetCatalogInfo. Also, I recall things are different for stat under 64 bit, so you may want to make sure you're doing the right thing. - Gary L. Wade (Sent from my iPhone) On Jul 8, 2011, at 8:37 PM, "Rick C." wrote: > Ok I have doub

Re: Best way to do static overlay over scrolling content?

2011-07-20 Thread Gary L. Wade
You may be better served to consider doing something like the way rulers are used in relation to a scroll view. If you choose an overlay that needs to keep synchronized with another view, look at how WebKit does this for its Inspect Element feature. - Gary L. Wade (Sent from my iPhone) On Jul

Re: Lion changes

2011-07-21 Thread Gary L. Wade
Rather than using other processes, look into the System Configuration framework. - Gary L. Wade (Sent from my iPhone) On Jul 21, 2011, at 8:28 AM, Leonardo wrote: > Hi, > while on MacOs X 10.6 and earlier this piece of code worked properly, on > Lion I get a different result (bug). &g

Re: No crash report generated

2011-07-23 Thread Gary L. Wade
Off the top of my head, an uncaught exception does not produce a crash report although it's a crash for all purposes to a user. - Gary L. Wade (Sent from my iPhone) On Jul 23, 2011, at 6:28 AM, Ryan Joseph wrote: > I'm trying to debug a crash with a user but there is no crash

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Gary L. Wade
y steps to reopen all the previously opened files precipitated both a bug and lots of emails to Apple executives and management. I suggest you do the same. It's almost as if the development team believes all developers use 11" Airs rather than the two-monitor 27" setup many prefer. - G

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Gary L. Wade
As I mentioned before, everyone should go to bugreporter.apple.com and enter bugs against this horrible MS Windows method of UI that prevents usable viewing of multiple files that has been added to Xcode. - Gary L. Wade (Sent from my iPhone

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Gary L. Wade
;t want my existing windows closed when I create or open a new file. - Gary L. Wade (Sent from my iPhone) On Jul 24, 2011, at 12:40 PM, Alex Kac wrote: > But as I said, you simply then tell Xcode to open two windows. I really don't > see what the problem is here. It sounds more like you

Re: + (void) initialize not getting called

2011-07-24 Thread Gary L. Wade
+initialize is called only the first time a class is instantiated; it can be called again if a derived class does not implement it. - Gary L. Wade (Sent from my iPhone) On Jul 24, 2011, at 12:43 PM, Gabriel Roth wrote: > On Sun, Jul 24, 2011 at 3:33 PM, Ken Tozier wrote: >> I wrot

Re: Lion NSSpeechSynthesizer leak?

2011-07-25 Thread Gary L. Wade
ven get me started on their non-standard approach of retaining its delegate! - Gary L. Wade (Sent from my iPhone) On Jul 25, 2011, at 5:12 AM, Bill Cheeseman wrote: > Code that did not leak when built in Snow Leopard now leaks an > NSSpeechSynthesizer object when built in Lion. It is a stan

Re: Dialog Command Keys

2011-07-26 Thread Gary L. Wade
You had mentioned earlier that your UI is programmatically generated; are your menus also in that category? If so, and they need to remain that way, try starting again with a standard NIB and inspect each item to see what things you may be missing. - Gary L. Wade (Sent from my iPhone

Re: Two NSTableViews, two data sources, one data model?

2011-07-27 Thread Gary L. Wade
I found it cleaner to have a separate object from my document be the data source (and delegate) for four separate views (table, outline, browser, collection) showing a folder hierarchy. - Gary L. Wade (Sent from my iPhone) On Jul 26, 2011, at 10:53 PM, Izak van Langevelde wrote: >

Re: Documentation for -release is not quite true

2010-08-23 Thread Gary L. Wade
Have you considered that the code for -release may be implemented in a manner like this? -(oneway void)release { if (1 == self->retainCount) { // Let's save a few CPU cycles and not bother // decrementing retainCount since it won't be // around for long. [se

Re: How to get selected text in a WebView

2010-10-04 Thread Gary L. Wade
Was there a problem with what dr.text or [dr toString] returned after your first line? On 10/04/2010 12:15 AM, "Gerriet M. Denkmann" wrote: > I have a Webview, and I want to do something with the selected text. > > I tried: > DOMRange *dr = [ webView selectedDOMRange ]; > NSString *m = [ dr ma

Re: Objective-C Mind Map Libraries

2010-11-25 Thread Gary L. Wade
The silence you're hearing is due to people being tired of posting the same comment to another person who hasn't learned how to use a search engine with the words "cocoa open source". On 11/25/2010 12:33 PM, "Andrew McLaughlin" wrote: > So I guess there's none? :) > > Andrew > > > On Nov 22,

Re: UKKQueue and CVS

2010-12-24 Thread Gary L. Wade
guarantee of a file being changed during a commit is within the repository of a source control system, not your local sandbox. - Gary L. Wade (Sent from my iPhone) On Dec 24, 2010, at 6:45 AM, Martin Hewitson wrote: > Hi Uli, > > I did try various combinations of the flags, and I e

Re: XML to Plist

2010-12-28 Thread Gary L. Wade
Following on the same path as suggested to take a step back and examine what you want to happen, launch Property List Editor, create a Property List file, and manually add the items from your XML scenarios to determine what you really want to happen for each item you encounter. On 12/28/2010 10:34

Re: Event to trigger writeSelectionToPasteboard

2011-01-06 Thread Gary L. Wade
Have you thought of changing your mouse's System Preferences settings to execute a script that does what you want? It appears you should be able to use the side-buttons on a Mighty Mouse to do what you want. Otherwise, I'd contact the manufacturer of your three-button mouse and let them know of y

Re: LOCATING MEDIA FILES IN MACINTOSH

2011-01-06 Thread Gary L. Wade
If you want Cocoa, check out enumeration in NSFileManager; if you want C/C++, check out iteration in Files.h. On 01/06/2011 12:54 PM, "Abhinav Tyagi" wrote: >Hi All, > >Although this querry may seem simple to you but since i dont have any idea >about it, >i am clueless as how to approach. > >Pro

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-14 Thread Gary L. Wade
uickly answer our question. This is > where a legitimate need to > verify and check object ownership comes from. If you differentiate between these, check out the sample code Apple has made available as well as the old WWDC videos, which may provide you with a feel like "an expert in th

Re: copyItemAtPath takes double time than the Finder

2011-01-19 Thread Gary L. Wade
Both FSCopyObjectAsync and FSCopyObjectSync leak memory in Mac OS X 10.6.x, even up to 10.6.6; the async form leaks even more than the sync form. Apple has verified this both in my bug, rdar://8734968 (opened against 10.6.5) and another unspecified one opened earlier in 2010. I've verified both s

Re: lots of find/replace in text file

2011-01-22 Thread Gary L. Wade
The Mad Libs program I was working on just used the standard printf placeholders with the ordering parameters. When showing the parts of speech, I just supply "adjective." When showing the user's choice, I just supply "red." - Gary L. Wade (Sent from my iPhone) On

Re: how to change NSButton color

2011-01-22 Thread Gary L. Wade
Safari's inspect elements does it—the WebKit code is available for you to view. - Gary L. Wade (Sent from my iPhone) On Jan 20, 2011, at 11:49 PM, Dianne wrote: > Hi List, > > I would like to know what you can suggest when changing the color of NSButton. > I have read everywhe

Re: Internal target="_blank" NSRequests are NIL.

2011-01-27 Thread Gary L. Wade
My needs were to launch such windows in the default web browser rather than any of my own windows, but I believe you'd do something similar by using WebPolicyDelegate and add the method -webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListen er: Depending on further needs, you

Re: Implementing a Find menu item like Safari?

2011-01-28 Thread Gary L. Wade
Check out NSPredicateEditor and http://webkit.org/ for how Safari does things. On 01/27/2011 7:43 PM, "Ben Golding" wrote: > >Safari has a really nice "Find" bar that scrolls down from the title pane >of the window. I'd like to do something like that in an application that >I'm developing but I

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Gary L. Wade
waiting on the user to see its data; let it keep working and let the main thread check for updates when it can. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

<    1   2   3   4   >