Re: 10.6 SDk and 10.5 Deployment

2012-06-28 Thread Gary L. Wade
many of the cases where you need to safeguard against the use of unavailable APIs, methods, and classes. Oh, and you really should be turning on and listening to practically every warning possible. Then, after you do all that, testing definitely should be done. -- Gary L. Wade (Sent from my

Re: Toggle row selection using checkbox

2012-07-04 Thread Gary L. Wade
You would just have another column with another property to bind or set to if you want to use a check box. The selection provided by NSTableView is different, and you'd ignore the other methods of marking a selection. -- Gary L. Wade http://www.garywade.com/ On 7/4/2012 11:47 AM, &q

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-19 Thread Gary L. Wade
I don't know for sure, but you might be able to get around the 3rd party plug-in issue by using runtime attributes instead. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: +underPageBackgroundColor

2012-08-03 Thread Gary L. Wade
That "color" is actually a pattern. What are you doing that gives you the unexpected result? -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Aug 3, 2012, at 1:14 PM, Marcus Karlsson wrote: > > On Aug 3, 2012, at 3:00 PM, Graham Cox wrote: > >> Hi

Re: How to display tool-tip on demand

2012-08-05 Thread Gary L. Wade
d fit your need. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Aug 5, 2012, at 4:56 PM, Michael Crawford wrote: > Is there a way to display a tool-tip in response to an event? Currently I'm > waiting for the default timeout but if the user clicks on a particular ce

Re: +underPageBackgroundColor

2012-08-08 Thread Gary L. Wade
it already uses for its > built-in colours As a somewhat example, you might want to look at the WebKit classes related to the DOM. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: Apple Aperture-like look & feel

2012-08-17 Thread Gary L. Wade
particular at NSDrawThreePartImage and NSDrawNinePartImage. -- Gary L. Wade 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 moderators at

Re: Distributed Objects

2012-08-27 Thread Gary L. Wade
pKit. -- 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 comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.ap

Re: Best data source for table view in document window

2012-09-05 Thread Gary L. Wade
s open things up to more richer representations that may not require your "view-ish" code. Your separate, standalone object may be a good solution, too, but think of the has-a, is-a, or uses relationship between your document class and it, and that might help you know who owns your data.

Re: Formatting elapsed time

2012-09-07 Thread Gary L. Wade
U to get something you'll be happy with in Russian, Chinese, Taelon, and Klingon as well as English. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Sep 7, 2012, at 4:57 PM, Dave DeLong wrote: > Run @"j:mm" through +[NSDateFormatter dateFormatFromTempla

Re: nstableview without nsscrollview

2012-09-25 Thread Gary L. Wade
There's an elastic setting, which I don't recall the exact name or settings, but you just turn those off to get rid of the bounce. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Sep 25, 2012, at 9:55 PM, Alfian Busyro wrote: > Thanks for the answer. >>

Re: Localising "dynamic" string resources in code

2012-10-10 Thread Gary L. Wade
encapsulation: if you want to change the spelling of the key, you have its spelling in one place only (other than the key itself in the strings file) rather than in many different places and possibly missing one. -- Gary L. Wade http://www.garywade.com/

Re: NSOperation and waitUntilFinished

2012-10-20 Thread Gary L. Wade
At the time when you call waitUntilAllOperationsAreFinished, no operations have been added, so there's nothing to wait on. Add the operation to the queue first and then call wait. -- Gary L. Wade (Sent from my iPhone) http://www.garywad

Re: Warning message using stringWithContentsOfFile:encoding:error:

2012-10-27 Thread Gary L. Wade
aders, framework, or project, possible where error is redefined for some purpose, possibly debugging or mapping to another set of code. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Oct 27, 2012, at 4:21 PM, Paul Johnson wrote: > Nick, I can't find any headers that #de

Re: a way to clear inactive RAM

2012-11-06 Thread Gary L. Wade
s or Java activated. Really, that's the only way to fix this without actually fixing Safari. Otherwise, keep submitting bugs to Apple. Hopefully someone will do something. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev

Re: Localization not working based on region with en-US, en-UK and en lproj

2013-02-03 Thread Gary L. Wade
Edit List button and add it. Depending on which OS you're on, some of the UI elements might be slightly different but are generally the same. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (

Re: Is CoreData on iOS ready for prime time for serious work?

2013-02-14 Thread Gary L. Wade
by Apple—I suggested ignoring based on thread name—such as the ones utilized by SSL and sockets, which gets really noisy during certificate handshakes. Feel free to add your own and maybe CoreData won't be so noisy in the next release. -- Gary L. Wade (Sent from

Re: LLVM 4.2 bug: crash on 10.6.8 in loop iteration

2013-02-20 Thread Gary L. Wade
Is it the empty array that's causing the crash? Does it still crash if the array has at least one object? -- Gary L. Wade http://www.garywade.com/ On 2/20/2013 8:33 AM, "Andy Lee" wrote: >If you upgraded to Xcode 4.6 and suddenly you've been seeing crashes when >depl

Re: Is there a way to access the native iOS Notes app to create new notes?

2013-03-19 Thread Gary L. Wade
Notes are stored in the Notes folder of each email account. If you can access that, you can access notes. -- 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

Re: Convert spelled out numbers to digits?

2013-03-27 Thread Gary L. Wade
I know that ICU, and to some degree the Cocoa frameworks also, can format numerical types into textual form, but I'm not sure about going the other direction. Look into NSNumberFormatterSpellOutStyle. -- Gary L. Wade http://www.garywad

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Gary L. Wade
If the problem is with the index path, you could get selectedRowInColumn:0 and construct your own index path with the returned value. -- Gary L. Wade http://www.garywade.com/ On 4/4/2013 2:13 PM, "Paul Wasmund" wrote: >I am trying to use editItemAtIndexPath:withEvent:select: in

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Gary L. Wade
ctController or its related subclasses and something didn't get converted over or compiled right for your release build? -- Gary L. Wade http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: dev site down time is ridiculous

2013-07-24 Thread Gary L. Wade
as an OS release. -- Gary L. Wade 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 moderators at cocoa-dev-admins(at)lists.apple.

Re: Initializing a NSMutableString an odd way

2013-07-31 Thread Gary L. Wade
al data is supplied while the others with actual data might add the overhead of defining the actual data; theoretically, an empty string is more data than no data yet to be filled. -- Gary L. Wade http://www.garywade.com/ ___ Cocoa-dev mailing list

Re: reverse scanner

2013-08-10 Thread Gary L. Wade
Is there a problem with using a character set of all digits except 0 when recognizing digits? -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Aug 10, 2013, at 10:07 AM, Boyd Collier wrote: > I'm dealing with a situation in which I have to scan strings that are > s

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Gary L. Wade
Johnny Lundy wrote: Try looking at the documentation for NSDatePicker if you want to see how NOT to write documentation. Uh, are you talking about THIS web page? http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDatePicker_Class/Reference/Reference.html I haven

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread Gary L. Wade
Just to add some insight, when reading the Cocoa documentation, it's very helpful when a developer also has some degree of exposure to Interface Builder. Take heart, though, as Interface Builder is just a click away. Once you have an idea how things somewhat work within Interface Builder and

Re: Localization and plural rules revisited

2008-05-20 Thread Gary L. Wade
>On May 20, 2008, at 12:08 PM, Peter Edberg wrote: > >> CLDR (Common Locale Data Repository) has some draft data on plural >> forms for various languages. See >> >> > for specific rules >> and >>

RE: Safari-like padlock button in window title bar

2008-05-20 Thread Gary L. Wade
I'm planning on doing something like this myself with one of my projects, and the way I plan on trying it out is by using: -(NSButton *)standardWindowButton:(NSWindowButton)b; for each NSWindowButton of the NSWindow, find a reasonable visual gap to the left/right of one of the buttons, and

Re: Faster way to test pixels?

2008-05-25 Thread Gary L. Wade
I've not explored Velocity Engine programming under the PowerPC or its equivalent under the Intel processor family, but your needs seem like they might be solved by using that as a solution to further improve the performance. Graham Cox wrote: On 25 May 2008, at 5:13 pm, Jens Alfke wrote: T

Re: running an external app

2008-05-27 Thread Gary L. Wade
When starting out, it can be difficult getting used to the different style of function declarations and calls used in Objective-C, but as so many others have said, that's a basic requirement when learning a framework like Cocoa. Anyone familiar with some C++-based object-oriented UI frameworks

Re: File's Owner

2008-05-27 Thread Gary L. Wade
Alex Kac wrote: I liked "Nib's Owner". It keeps with the "owner" tag, but makes it more clear. True, but the use of NIB vs. File may be a historical set-in-stone thing that never changed since the NIB is the File (conceptually, of course, since a NIB is a directory with three files), and ever

Re: newbie question: menu item appears when app runs, but is not visible in NIB

2008-05-29 Thread Gary L. Wade
Interface Builder can be buggy at times, leaving some "leftovers" around when they should be gotten rid of. I've got a couple of leftovers myself, but they're harmless so far; one of these days, I'll just go all down-and-dirty editing on it, but I don't have the time right now. If you've stil

Re: newbie question: menu item appears when app runs, but is not visible in NIB

2008-05-30 Thread Gary L. Wade
If you did that with the version of your NIB that was showing the extra menu item when running your application that you did not see in the Interface Builder edit mode, then things are really weird, unless, of course, you have some code that added that menu item, but that's not something one do

Re: NSTextView and changing the selected text's color

2008-05-30 Thread Gary L. Wade
As for the color choices to use when drawing selected color text, what I've found most readable to my users is to continue using the selection color as chosen by the user but to draw the text shadowed as the Finder does it, with the text being white and the shadow color being the color of the t

RE: Newbie question: error in creating a NSData object using handle(Resource Management)

2008-06-25 Thread Gary L. Wade
1. Have you set the resource file you're iterating over as the current resource file (UseResFile)? Make sure you save off the current resource file (CurResFile) before you do that so you can reset it once you close it. The Resource Manager is not good at keeping track of state in the way you m

RE: Auto pop-up list from State field in Address book database

2008-06-25 Thread Gary L. Wade
I don't think NSPopUpButton will accept key events if the menu is not active, although once the menu is active, it will accept key events, but you could probably embed your NSPopUpButton control in a custom control that does take key events and then filter those into choosing an item in the menu

Re: How to converting a Carbon nib to Cocoa?

2008-07-03 Thread Gary L. Wade
Apparently you haven't perused the XML used by Carbon NIBs. There's lots of linkages across the format so that any particular object is not as completely self-contained as you believe. > >On 3 jul 2008, at 14.54, Kyle Sluder wrote: > >> On Thu, Jul 3, 2008 at 8:27 AM, Tommy Nordgren <[EMAIL PRO

Re: string to float

2008-07-04 Thread Gary L. Wade
If you've already parsed the text, just use NSNumber's class method +numberWithDouble (or whichever other method is appropriate for your needs). If you don't want to use your own parser, you can use NSScanner on your text, but make sure you've set the locale to correctly interpret the comma.

Re: Style Question (Robert Claeson)

2008-07-04 Thread Gary L. Wade
Scott Ribe wrote: Anyways, it really is a personal preference. All arguments I've ever seen that try to claim one style or the other is more correct or safer, are B.S. (Including the one referenced--the bounds of a block were *ALWAYS* absolutely vitally important, well before objects & destructor

RE: CFBundleIdentifier & Application Version

2008-07-11 Thread Gary L. Wade
It's really up to you and the kinds of changes that you expect to happen between each version. Having a single ID allows preferences to be mixed and matched if different versions of the product are used, but if you want to support the simultaneous use of last year's version and this year's vers

Re: garbage collection and NSConnection

2008-07-12 Thread Gary L. Wade
Marcel Weiher wrote: uint16_t _rc; Oh, the horror of it all! Only 65,535 objects can retain a string!!! What am I to do when I model all the citizens of the US voting for just one presidential candidate in November, and the retain count overflows?!?! Okay, that's not a real concern fo

Re: triangulating webcams

2008-07-12 Thread Gary L. Wade
Sounds intriguing; at first thought, you may want to consider Xgrid to provide such collaboration, although it may not be what you're needing; there's other means to provide collaborative networking between Macs. If you want feedback on an experimental GUI, try the mac-gui-dev list on Yahoo wit

Re: garbage collection and NSConnection

2008-07-12 Thread Gary L. Wade
It looks like it was expanded in 10.5, then, but 10.4 and prior use the 16-bit variables. Regardless of whether it handles overflows or not, my little joke was meant to illustrate that too many developers (generally speaking) think that resources (generally speaking) are unlimited and put no t

[OT] XML GUI editor [was Re: Blue lines]

2008-07-15 Thread Gary L. Wade
>On 15-Jul-08, at 5:36 PM, Scott Anguish wrote: > >Please, please an XML GUI editor. :-) Then the HTML version can be >done via an XML schema, and users needing an XML editor will be all >good. Hmmm...veering off-topic and divergent from the original question, but how would you personally exp

RE: NSButton alternate image problem - not redrawing

2008-07-16 Thread Gary L. Wade
If I'm reading you right (the action of a button click causes that same button to get a new alternate image), I would say that you should set the alternate image before the user clicks on the button. Once a button is toggled, the current alternate image (or image, depending on state) is drawn.

RE: Move window to second display

2008-07-16 Thread Gary L. Wade
Try breaking out the call path to examine each succeeding value when assigning a value to display. One thing that jumps out at me: are you running this in 64-bit mode? The size of an int in 64-bit mode is 32 bits but a CGDirectDisplayID may have 64 significant bits as it's technically a point

Re: Memory Allocation

2008-07-16 Thread Gary L. Wade
You mentioned you launched your application with ObjectAlloc; launch it instead with MallocDebug and do your testings with the Leaks option to check for memory leaks. It will show you an execution path so you can determine where the allocation originated that is leaking. >On Wed, Jul 16, 2008

RE: Image name for drag and drop from Safari

2008-07-18 Thread Gary L. Wade
Launch the Clipboard Viewer, which is in: /Developer/Applications/Utilities/Built\ Examples/ and drop your images onto it, and then select the Drag Clipboard, possibly clicking Reload to inspect the values you can get. >Hi, >In my application, i allow users to drag and drop images from Safa

Re: Authentication only for non admin login.

2008-07-18 Thread Gary L. Wade
If you have already gotten an AuthorizationRef that's been authenticated, you can "copy info" from it that holds the "Username" (see the related documentation for those keywords). If you want the Unix username, start with "getuid" and work from there. >hi, >I think I have precisely mentioned w

Re: Authentication only for non admin login.

2008-07-18 Thread Gary L. Wade
Sorry, I didn't read your original post too carefully; it looks like you haven't even gotten to that point of authenticating. Check for examples using SFAuthorizationView; it creates the OS-standard lock/unlock icon and label and can prompt the user in the way you want. If you still need the u

Re: getting the clicked-in view

2008-07-29 Thread Gary L. Wade
How do you know you got a click in a view? In other words, at what stage are you in your application that you believe you got a click in a view? >Okay, I found a way around the problem... But it might still be handy >to know how to do this, at some point... > >On 29-Jul-08, at 12:56 PM, James

Re: GetDblTime, 64-bit, and cocoa

2008-08-05 Thread Gary L. Wade
Well, the global domain has this key: com.apple.mouse.doubleClickThreshold >On 7/22/08 11:48 AM, [EMAIL PROTECTED] said: > >>i need to set a timer when i get a first mouse click and perform >>something if i don't get another click within the double click time. >>i found this old thread (from

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-06 Thread Gary L. Wade
Off the top of my head, with a number of files being opened so high and relatively close to the value you get from getrlimit with a parameter of RLIMIT_NOFILE, I'd suggest checking to see if that's the problem. >Hi Nicolas, David, > >I'm having the exact same problem. Loading collections of smal

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-08 Thread Gary L. Wade
f the lib explicitely indicates that it's a -11 error, maybe there's >a simple explanation? > >On 06 Aug 2008, at 23:36, Gary L. Wade wrote: > >> Off the top of my head, with a number of files being opened so high >> and relatively close to t

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-08 Thread Gary L. Wade
In that case, it sounds like the Image Source code is leaving the file open, which makes some sense for local files, although it's not explicitly documented anywhere that I've noticed; if I recall correctly, this also happens with the similarly-named QuickTime-based APIs. To continue using CGI

Re: Sharing NSViews

2008-08-08 Thread Gary L. Wade
Each view has knowledge of only one superview and window. If you're wanting to coordinate the two views, you'd need to wire up a controller or use notifications to keep them in sync. c. mendoza wrote: Hey All, Is it possible to share an NSView across two different panels or windows? I tried

RE: Convert unicode string into ascii

2008-08-29 Thread Gary L. Wade
Maybe I'm missing something from your example, previous postings, and my ISP's web mail client, but it appears your desired output doesn't seem to match in character count to your original text. Nevertheless, if all you want is to turn low-ASCII (values less than 0x20) and high-ASCII (values gr

RE: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread Gary L. Wade
In Mac OS X, if I had an object of type ABAddressBook, I would use the message "me". If I didn't like "me", I might try "setMe:". ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

RE: large documents with doc based app

2008-03-05 Thread Gary L. Wade
Try overriding readFromFile:ofType: and other similar messages for unique file needs. >Hey guys, > >Using the document based skeleton there is the method > >- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType >or >- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName

Re: GetMonitorFromWindow

2008-03-07 Thread Gary L. Wade
Also, there are certain other presentation-based applications where this kind of functionality is desired. For example, when you want to go fullscreen with any kind of media, be it from iPhoto, PowerPoint, Keynote, etc., you may indeed wish the presentation window to situate itself fully on a p

Re: CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread Gary L. Wade
If all the code you're using is present, it looks to me like you're not releasing the object pointed at by image; the object returned by imageWithData is not an auto-released object. >I narrowed this down by removing the filters, and the leak is still >there. And what a leak! Everytime I draw th

RE: What is the status on the New Cocoa 2.0 Books?

2008-03-12 Thread Gary L. Wade
>I know hillegass is doing one but has anyone a date on it ? >And might there be others ? Barnes and Noble shows a publication of June 13, 2008, and Amazon.com shows a publication of May 26, 2008:

Re: Network communication with NSFileHandle & NSSocketPort

2008-03-19 Thread Gary L. Wade
Well, this code works for me whether I have an IP address or domain name in the string: addr.sin_addr.s_addr = inet_addr (theCStringInternetAddress); if (INADDR_NONE == addr.sin_addr.s_addr) { struct hostent*theHostInfo; theHostInfo = gethostbyname (theCStringInte

Re: Best Way To Lookup From a Huge Table

2008-03-21 Thread Gary L. Wade
I haven't been following this thread too closely, but after all this talk, I was wondering if the interested parties have tried using NSDictionary's dictionaryWithContentsOfFile or its related methods. The file it takes is a property list that can be created/edited in textual form or by using P

Re: Getting Localized System Strings

2008-04-01 Thread Gary L. Wade
> >Thanks a lot. I decided to use it like this: >NSBundle *appBundle = [ NSBundle bundleWithIdentifier: >@"com.apple.AppKit" ]; >NSString *localSetFont = [ appBundle localizedStringForKey: @"Set >Font" value: nil table: @"Undo"]; >Seems to work fine. > That's really not a good thing to do unle

RE: DataSource for NSTableView with ButtonCell

2008-04-02 Thread Gary L. Wade
Try having your NSTableView delegate's method return an NSNumber; that's what I did for the NSSliderCell column in my NSTableView. >Hello List, > >i've created a NSTableview with Interface Builder. In one of my Collums is a >NSButton. I've no idea how to set up the DataSource for this. > >Can an

Re: Core Data and the Document Dirty indicator

2008-04-12 Thread Gary L. Wade
>Exactly what I needed! Thank you, that has fixed my problem. > >I wish the Conceptual documents could be made available in a book :) > >Jonathan > I've requested that Apple provide a print-on-demand link with each document on their web site. The way I suggested it was to have a shopping cart ic

Re: horizontal sizeToFit of NSTextView or NSTextField

2008-04-20 Thread Gary L. Wade
If you wish to vary both the width and height to be a more pleasing set of dimensions, similar to what an alert does, try word wrapping your text into a golden ratio rectangle using the area measurement generated by your single-line text measurement. Of course, based on a strict interpretation

Re: How to convert UInt8 array to NSString

2008-05-07 Thread Gary L. Wade
If you're interested in determining the best encoding match for text, look at the TextEncodingConverter.h header, which has functions related to encoding sniffing. There may be more modern techniques available, but I had used that almost a decade ago in a formerly major web browser. It's not p

Re: How to convert UInt8 array to NSString

2008-05-07 Thread Gary L. Wade
ing like this + >[NSString stringWithContentsOfFile:usedEncoding:error:] ;-) > >«Discussion > This method attempts to determine the encoding of the file at path.» > >Le 7 mai 08 à 19:33, Gary L. Wade a écrit : > >> If you're interested in determining the best encoding match for >> text, lo

Re: How to convert UInt8 array to NSString

2008-05-08 Thread Gary L. Wade
Sorry, I misread your suggested method, but, as Adam points out, it still isn't adequate for someone who has free-styled 8-bit text with no idea what the original encoding was. > >On Wednesday, May 07, 2008, at 12:37PM, "Jean-Daniel Dupas" ><[EMAIL PROTECTED]> wrote: >>What make you think this

Re: expose - the algorithm

2008-05-08 Thread Gary L. Wade
Google TreeMap and look at the links for space-constrained visualization of hierarchies as a method of doing something similar to what Expose does. > Hi All, > > I have a task to move windows around and fit them into a defined space, > almost > exactly like Expose. I.e. the space to fit all th

Two-fingered rotate gesture

2008-12-17 Thread Gary L. Wade
Here's a suggestion that I just thought about that I'd like to pass on to everyone for their apps. I don't have much time to research it or try it out for myself (I'm bogged down with too much legacy "fun" right now), and since we have quite a few people on the list, maybe a good number might take

Re: Disabled button looks like enabled

2009-01-12 Thread Gary L. Wade
Anyone who has been developing Apple/Mac software for more than a few years can attest that Apple occasionally changes the way that some UI elements look, in some ways very subtle and in other ways major, and relying upon a current side-effect of one UI element to look like another element can caus

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2009-01-15 Thread Gary L. Wade
First off, I tried to read the linked web page, but it appears your style sheet is causing the left margin to be displayed a couple of words or so to the left of the visible browser window on Safari and Camino, so it's almost impossible to read. Second, you should submit a bug by way of bugreporte

Re: Report writer for Cocoa?

2009-01-15 Thread Gary L. Wade
In defense of the original poster, I understood perfectly what he was asking, and the responses he received showed others did, too. Pretty much everyone who has heard of FileMaker and Microsoft Office, two extremely well-known products each available on the Macintosh for well over a decade, as wel

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2009-01-16 Thread Gary L. Wade
Then the best thing for you and anyone else experiencing the problem to do is to write a bug and reference Adam's bug(s). I'm not privy to such prioritizations, but Apple does take greater stock in bugs when they are reported by more than one person. Now, I don't think they'd respond faster if th

Re: [NOOB] Finding Information (was: real noob question)

2009-01-19 Thread Gary L. Wade
On 01/19/2009 11:57 AM, "Brian Slick" wrote: > I'm not sure this is a documentation failure as much as a language > failure, at least in this case. Why isn't there an initWithInt: or > initWithFloat: like in some other cases? THAT would have resulted in > the documentation page leading to the c

Re: Is there any mirroring in the Cocoa UI ?

2009-01-21 Thread Gary L. Wade
Not in the sense you get from the Windows platform whereby setting a flag on the parent window causes everything to automatically jump to the opposite side of the window and lay itself out right-to-left. Such alignment requires a different layout (NIB/code/etc.), although with controls like check

Re: Interface Builder Plugin Dependency

2009-01-29 Thread Gary L. Wade
Looks like your plug-in is being running as a tool without a connection to the window server. On 01/29/2009 3:54 PM, "Bridger Maxwell" wrote: > It turns out the error is completely different from what I thought it was > (isn't it always?). It turns out Xcode was omitting part of the output from

Re: inconsistent float behaviour

2008-10-10 Thread Gary L. Wade
I've not used it myself, but there is also NSDecimal that may be an alternative. Also, I recall seeing an IBM-released class that I believe had been part of ICU that also did decimal arithmetic using 32 or 64 bits. > >On Oct 10, 2008, at 5:04 AM, Steven Hamilton wrote: > >> Am I totally misunde

Re: Memory Leaks in CocoaEcho Sample

2008-10-22 Thread Gary L. Wade
To move beyond the memory leaks in an untouched version of EchoClient, the only thing you need to do is remove the retain calls in openStreams. The call to -[NSNetService getInputStream:outputStream:] calls CFStreamCreatePairWithSocketToNetService, which is a "create" function. To verify this,

Re: Memory Leaks in CocoaEcho Sample

2008-10-22 Thread Gary L. Wade
Then the bug is somewhere in your changes. The only thing you should do is remove the retain calls. If you also remove the release calls, you will still have the memory leaks. Here's what openStreams should look like: - (void)openStreams { [inputStream setDelegate:self]; [outputStream

Re: BonjourSample from Hillegass (Advanced Mac OS X Programming)

2008-10-23 Thread Gary L. Wade
Use IPPROTO_TCP instead, which is in the Unix headers. >>> > >Hello again, > >my first answer was too quick... > >If I put the 0x06 (I found it in the header file for INET_TCP) in the >code, it works. But how can I include the header? I do not get it to >work for a more cleaner approch... > >I

RE: NSInputStream Not Reading All Data

2008-10-23 Thread Gary L. Wade
I use different APIs, but I just read until I get a 0 or -1 back for the length. >Hi All. > >I have an NSInputStream that I've set up on the run loop to read data >from a socket. It's mostly working except that when I am sending it a >large amount of data (say 30k), the last chunk of data neve

RE: Porting from Windows to Mac

2008-10-30 Thread Gary L. Wade
Check out this article on Apple's web site: Essentially, CodeWarrior, for Mac development, should not be considered for new development (I have to use it for a legacy product, and there's lots of featur

RE: Process Priority

2008-11-08 Thread Gary L. Wade
The function you want is getpriority, but there are limits to what you can do on changing a process's priority; if I recall, you can lower it (going from 0 to 1 or 20), but you can't raise it (going from 0 to -20) without admin/sudo privileges. My quick-and-dirty app (it's really only effective

Re: Process Priority

2008-11-11 Thread Gary L. Wade
A priority of 0 is the default unless a process was launched by a process that had a different priority, and then it would have that priority as well. I'm afraid I don't follow what you're doing and what values you're seeing, based on your use of "that" and "my" app. You can use the Unix command

Re: BAD_EXC_ACESS

2008-11-20 Thread Gary L. Wade
Maybe the problem is that your last name is French; try launching it in English rather than in Greek. ;-p Okay, seriously, maybe you should start by looking at the code in your NSTableDataSource protocol methods for an infinite loop. On 11/20/2008 2:28 PM, "Richard S. French" <[EMAIL PROTECTED]>

Re: BOOL value in Dictionary

2008-11-21 Thread Gary L. Wade
Another interesting thing I've seen with some compilers is when a bit flag is defined with a signed type: short someflag : 1; a value of it being set may be -1 rather than 1, so the only way to compare it according to how you want it to work is by comparing it against 0 in some way: if (

Re: Searchable persistent file reference

2008-12-10 Thread Gary L. Wade
An alias stores quite a bit of information in it to allow you to find a file object (files, folder, disks) if it moves or is renamed or if any of the elements of its path is renamed, and can usually work with varied file systems. I am not familiar with BSAlias or NDAlias, but if they provide a goo

Re: Second frontmost app?

2009-04-28 Thread Gary L. Wade
You're starting off with GetCurrentProcess, which returns the process number of your application; have you tried GetFrontProcess, which returns the front process? This will not be your application if you're in the background. On 04/28/2009 9:57 AM, "Jean-Daniel Dupas" wrote: > Don't bother with

Re: Clearing an NSTextView

2008-02-24 Thread Gary L. Wade
[textView setString:@"Lyrics Code Here"]; Jeremy wrote: Hey, I have a small iTunes application and I am adding supporting the display of lyrics. Now I have it set up just like I want it to, and it looks amazing. Now the only problem is this: When I use [NSTextView insertText:@"Lyrics Code H

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Gary L. Wade
If you need lightweight drawing, you could use an NSTextFieldCell, which should give you some predictability. I don't recall the details, but there are a number of things that NSTextField does (and NSTextView) that aren't done with "raw" drawing (borders, margins, font resiz

Re: [OT] Question about writing documentation

2017-04-22 Thread Gary L. Wade
That’s a cool feature I didn’t know existed! Unfortunately, OGP7.3 crashes when I turn on either instance variables or methods; crash reports submitted. I’ll be looking forward to trying again on the next update. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> >

Re: [NSButton state] must by used from the main thread

2017-09-26 Thread Gary L. Wade
somewhere else that can be atomic and which decouples your background thread from the UI. -- Gary L. Wade http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Odd Behavior of UIText View in app compiled with a Base SDK of iOS 11

2017-10-07 Thread Gary L. Wade
been fixed. Try that out to see if anything jumps out at you. -- Gary L. Wade http://www.garywade.com/ > On Oct 6, 2017, at 1:33 PM, Michal L. Wright wrote: > > Hi, > > I have an app (written in Objective C) that has a UIView that includes a > UITableView and a UIToolbar. The

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Gary L. Wade
I would suggest addressing your concern at https://bugreport.apple.com/ -- Gary L. Wade http://www.garywade.com/ On Jan 24, 2018, at 11:05 AM, Jeremy Hughes wrote: >> I posted a related question in https://apple-dev.groups.io/g/xcode/ >> ("Assets.car is much larger for High Si

Re: NSSecureCoding & NSAttributedString

2018-02-18 Thread Gary L. Wade
that attribute, it would draw an appropriate border around the entire run. I didn’t have a need to send that attributed string to other apps, but if I did, I would hope my custom attributes would be preserved round-trip provided the run was preserved. -- Gary L. Wade http://www.garywade.com

<    1   2   3   4   >