Re: exposing only what you want - headers and Swift?

2016-06-26 Thread Thomas Wetmore
se of > source incompatibility and ABI issues? > >> On Jun 26, 2016, at 3:06 PM, Thomas Wetmore <t...@verizon.net> wrote: >> >> A framework does not include source. It as an opaque bundle that contains a >> public API and compiled code as an integrated whole. &

Re: exposing only what you want - headers and Swift?

2016-06-26 Thread Thomas Wetmore
A framework does not include source. It as an opaque bundle that contains a public API and compiled code as an integrated whole. > On Jun 26, 2016, at 2:48 PM, William Squires wrote: > > True, but they'd still have the source .swift file as the compiler would need > this

Re: Adding Constraints in Code

2015-09-14 Thread Thomas Wetmore
This looks like you are trying to push both the stack view and the detail view to the left and to the right at the same time, inconsistent with the overall horizontal constraint. Isn’t the error message indicating that there is something wrong with the provided options? I’d experiment with

Setting NSOutlineView Delegate When a Subview

2015-07-30 Thread Thomas Wetmore
I have a custom NSView that has an NSOutlineView as a subview. Instances are created and used programatically. The code is implemented in Swift 1.2. In order to set the delegate and data source for the NSOutlineView I assumed I should just add the following methods to the custom NSView: … var

Re: Setting NSOutlineView Delegate When a Subview

2015-07-30 Thread Thomas Wetmore
Note to self: Never ask Cocoa dev questions at 4:00 am. Sorry for wasting bandwidth. Problem was simply because I stupidly added delegate and dataSource as properties to the custom NSView. The compiler was telling me exactly what was wrong. Tom Wetmore On Jul 30, 2015, at 4:22 AM, Thomas

Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
I really try to figure this stuff out. No kidding. I am trying this simple experiment: I define an NSView that has nothing more than a resize handle, defined as a rectangular NSBezierPath in its lower right corner. There are no subviews and no superviews involved here. I resize the NSView by

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
It Wrong™. Because I’m 99.% certain that the OP is just Doing It Wrong™: On Jul 20, 2015, at 13:30 , Thomas Wetmore t...@verizon.net wrote: I would really like to be able to do resizing using a mouse event loop, but have the layout constraints somehow involved. Reading through references

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Ken, Thank you! The lights are coming on. Things can become quite obvious when they become obvious, can’t they? Tom Wetmore On Jul 20, 2015, at 5:13 PM, Ken Thomases k...@codeweavers.com wrote: On Jul 20, 2015, at 3:30 PM, Thomas Wetmore t...@verizon.net wrote: I would really like

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Wetmore On Jul 20, 2015, at 4:43 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Jul 20, 2015, at 13:30 , Thomas Wetmore t...@verizon.net wrote: When I instantiate one of these views and place it in an NSWindow, I can drag it around and I can resize it, as expected. Notably

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
On Jul 20, 2015, at 4:45 PM, David Duncan david.dun...@apple.com wrote: On Jul 20, 2015, at 1:30 PM, Thomas Wetmore t...@verizon.net wrote: I really try to figure this stuff out. No kidding. I am trying this simple experiment: I define an NSView that has nothing more than a resize

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Gary, I am working on an application that supports the old fashioned research process of using 3x5 index cards to hold sources and research notes. I have a hierarchy of NSView sub-classes to represent the cards. At the top of the hierarchy is CardView which simply provides the ability to drag

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
On Jul 20, 2015, at 7:53 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Jul 20, 2015, at 16:41 , Thomas Wetmore t...@verizon.net wrote: Here is the mouse-down method with event loop. As you can see I am calling setFrameOrigin in the dragging case and setting frame

Re: Errors resulting from Cocoa datatype changes 10.9 - 10.10

2015-07-06 Thread Thomas Wetmore
Carl, There is nothing wrong with the code. It is good C code from the good ole days. Size of pointers has no effect, other than in the total sizes of the arrays being allocated. Similar for the size of ints themselves. However, you stop short in your example, and you don’t show either how you

Re: Overlapping NSViews and mouseDown Events

2015-06-25 Thread Thomas Wetmore
Cox graham@bigpond.com wrote: On 25 Jun 2015, at 2:08 pm, Thomas Wetmore t...@verizon.net wrote: I assume the quirks of dealing with overlapping views have long been ironed out. What SDK and minimum target version do you have? I’m just wondering if there’s a compatibility thing

Overlapping NSViews and mouseDown Events

2015-06-24 Thread Thomas Wetmore
I am having a problem with NSViews and mouseDown events. I have defined a custom view (call it CardView) that is an NSOutlineView centered in a slightly larger view used as a border. When displayed, a CardView looks like an index card holding an outline inside a narrow border. There are a few

Re: Overlapping NSViews and mouseDown Events

2015-06-24 Thread Thomas Wetmore
Thomases k...@codeweavers.com wrote: On Jun 24, 2015, at 7:44 PM, Thomas Wetmore t...@verizon.net wrote: I am having a problem with NSViews and mouseDown events. I have defined a custom view (call it CardView) that is an NSOutlineView centered in a slightly larger view used as a border

Re: Overlapping NSViews and mouseDown Events

2015-06-24 Thread Thomas Wetmore
On Jun 24, 2015, at 8:44 PM, Thomas Wetmore t...@verizon.net wrote: So I have a view in which one of the subviews seems to work fine with respect to mouse events, but the border subview around it seems to be invisible to the event system. Experimentation has proven this statement

Re: Overlapping NSViews and mouseDown Events

2015-06-24 Thread Thomas Wetmore
) , but it didn’t change the behavior. I was hoping for an easy fix! Thanks again. Tom Wetmore On Jun 24, 2015, at 10:20 PM, Ken Thomases k...@codeweavers.com wrote: On Jun 24, 2015, at 7:44 PM, Thomas Wetmore t...@verizon.net wrote: I am having a problem with NSViews and mouseDown events

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

2015-06-12 Thread Thomas Wetmore
Swift looks like the future; I now use it for new development; and I am porting old projects to it as time permits. I was leary at first, but once it stopped crashing twenty times a day, and performance began approaching that of Obj-C, I converted. I won’t look back unless Apple does an about

Re: Sketch TNG Code?

2015-04-27 Thread Thomas Wetmore
Rick, I requested that code and was told it was not packaged for release as a sample project. I then requested an as-is copy, and am awaiting a reply. If you manage to find a copy I would appreciate hearing about it. Tom Wetmore On Apr 27, 2015, at 8:52 PM, Rick Mann rm...@latencyzero.com

Re: NSTableCellView Constraints?

2015-01-27 Thread Thomas Wetmore
On Jan 27, 2015, at 7:48 PM, Roland King r...@rols.org wrote: On 28 Jan 2015, at 08:35, Kyle Sluder k...@ksluder.com wrote: On Tue, Jan 27, 2015, at 05:34 PM, Roland King wrote: No I don’t think so. I can’t think of a case IB adds constraints to anything automatically at this point.

NSTableCellView Constraints?

2015-01-27 Thread Thomas Wetmore
I have a multi-column table that I am converting from an ObjC/cell-based implementation to a Swift/view-based implementation. The cells are text, so I am now using a vanilla text-only NSTableCellView in each column. When the application launches, I can shrink the columns just fine — the text

Re: NSTableCellView Constraints?

2015-01-27 Thread Thomas Wetmore
I have the XIB set for auto layout. However, after dragging an NSTableCellView into the NSTableHeader, IB’s size inspector (for the table cell view) reports that there are no constraints on the cell view. This is clearly the issue. Since I am learning Swift, cell-based views, and auto-layout

Re: NSTableCellView Constraints?

2015-01-27 Thread Thomas Wetmore
On Jan 27, 2015, at 10:48 AM, Roland King r...@rols.org wrote: On 27 Jan 2015, at 22:32, Thomas Wetmore t...@verizon.net wrote: There must be a constraint problem, and I have been playing around with them for awhile, but no joy yet. Googling has not turned up a similar issue. I would

Re: NSTableCellView Constraints?

2015-01-27 Thread Thomas Wetmore
On Jan 27, 2015, at 12:06 PM, Steve Mills sjmi...@mac.com wrote: On Jan 27, 2015, at 10:48:29, Roland King r...@rols.org wrote: Using IB to check the constraints on the NSTextField within the NSTableCellView, IB states: “The selected views have no constraints. At build time, explicit

Re: Dependency cycle for target xxx.lib detected: xxx.lib - xxx.lib

2013-12-08 Thread Thomas Wetmore
On Dec 8, 2013, at 5:58 PM, Fritz Anderson fri...@manoverboard.org wrote: On 6 Dec 2013, at 5:39 AM, Thomas Wetmore t...@verizon.net wrote: I'm using Xcode 4 and have a few static libraries that provide infrastructure for my applications. When I build the libraries I get the warning

HTML to Text to Tagged Text to XHTML

2013-08-25 Thread Thomas Wetmore
I am looking for some pointers or advice. I am developing an application to semantically tag HTML pages with genealogical information as defined by the schema.org/Person object and related objects. The NLP required to do the semantic analysis resides in a well-proven text processing library

Exception After Adding a WebView to a NIB

2013-08-24 Thread Thomas Wetmore
I am writing an app that does NLP on web pages for genealogical information and adds semantic tags to the HTML showing the results. I am having a basic problem. When I add a WebView object to the main NIPB using the interface builder, the app immediately crashes by throwing an objc exception

Re: Exception After Adding a WebView to a NIB

2013-08-24 Thread Thomas Wetmore
Danger Man, I got the include part but forgot the framework part. Thanks! Tom Wetmore On Aug 24, 2013, at 7:27 PM, dangerwillrobinsondan...@gmail.com wrote: Did you add the WebKit framework to your project and #include it ? On 2013/08/25, at 4:08, Thomas Wetmore t...@verizon.net wrote

Re: Fastest way to replace characters in string

2013-08-23 Thread Thomas Wetmore
On Aug 23, 2013, at 9:40 AM, Alex Zavatone z...@mac.com wrote: Why isn't it a good idea to have everything set up before you need it? In my reasoning, If there is downtime when items can be set up of prefetched before they are needed, then they are ready for use when needed. If you

Re: Fastest way to replace characters in string

2013-08-22 Thread Thomas Wetmore
Pre-allocation doesn't really matter as long as the re-allocations, whenever they occur, respect the capacity argument. Tom Wetmore On Aug 22, 2013, at 1:22 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Aug 22, 2013, at 9:06 AM, Jens Alfke wrote: create the empty output mutable

Re: Fastest way to replace characters in string

2013-08-22 Thread Thomas Wetmore
capacity size. Tom Wetmore On Aug 22, 2013, at 1:43 PM, Steve Mills smi...@makemusic.com wrote: On Aug 22, 2013, at 12:31:55, Thomas Wetmore t...@verizon.net wrote: Pre-allocation doesn't really matter as long as the re-allocations, whenever they occur, respect the capacity argument. Sure

Re: Fastest way to replace characters in string

2013-08-22 Thread Thomas Wetmore
Steve, Sorry, again I was unclear. Here is what I am trying to say: Pre-allocation means to allocate space before you need it, which would be at init time. But there is no need to pre-allocate -- the first allocation can be postponed until the first item is put in the container or characters

Re: IOS floating point performance

2013-08-08 Thread Thomas Wetmore
Returning strictly to the issue of trig performance. A solution I have used in the past is to initialize tables of trig functions, say by calling sin() and cos() for every half a degree, and then interpolating those tables, never calling sin() or cos() again. I did this 29 years ago on an Atari

Re: IOS floating point performance

2013-08-08 Thread Thomas Wetmore
table building can be optimized. Tom Wetmore On Aug 8, 2013, at 10:53 AM, Thomas Wetmore t...@verizon.net wrote: Returning strictly to the issue of trig performance. A solution I have used in the past is to initialize tables of trig functions, say by calling sin() and cos() for every half

Re: IOS floating point performance

2013-08-08 Thread Thomas Wetmore
to a professionally-crafted trig library pretty quickly). I guess that could be vectorized, but it's one more thing to debug. Profile the Accelerate.framework functions first. — F On 8 Aug 2013, at 10:01 AM, Thomas Wetmore t...@verizon.net wrote: p.s. Of course you don't have to call sin

Re: IOS floating point performance

2013-08-08 Thread Thomas Wetmore
David, Those are lightening speeds. So I agree with you wholeheartedly -- there is no sense in working on a custom table-driven approach. The current approach must already be table-based with speeds like that. Tom Wetmore On Aug 8, 2013, at 1:26 PM, David Rowland rowla...@sbcglobal.net

Re: IOS floating point performance

2013-08-08 Thread Thomas Wetmore
: Be careful using that code as a test; a good optimizing compiler could pick up that sin is a library function without side effects, and no result is saved, and optimize that loop to two calls to adjustValueRadians. Sandy On Aug 8, 2013, at 8:17 PM, Thomas Wetmore t...@verizon.net wrote

Re: What, exactly constitutes a mutable action on an instance?

2013-05-28 Thread Thomas Wetmore
Alex, What your three lines of code do: NSString *myString; Compiler allocates space for a pointer on the run time stack. myString = @Hi; Compiler creates an NSString object somewhere in the heap with the value @Hi and points the pointer to it. myString = @Hi there; Compiler creates

Re: What, exactly constitutes a mutable action on an instance?

2013-05-28 Thread Thomas Wetmore
Wetmore On May 28, 2013, at 12:11 PM, Thomas Wetmore t...@verizon.net wrote: Alex, What your three lines of code do: NSString *myString; Compiler allocates space for a pointer on the run time stack. myString = @Hi; Compiler creates an NSString object somewhere in the heap

Changing Subview Order Prevents Dragging

2013-05-13 Thread Thomas Wetmore
I've been experimenting with a UI for a program that manages many small, draggable views, that can be moved around in the same superview. The following mouse events work well for providing the dragging basics. However, when I drag a view relative to the other views I also want it to end up on

Re: Changing Subview Order Prevents Dragging

2013-05-13 Thread Thomas Wetmore
This works. Thanks for the tip. Tom Wetmore On May 13, 2013, at 11:38 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: -- Invoke 'addSubview: self' without first removing self. The NSView machinery may be clever enough merely to move the view to the end of the subviews array,

Re: Changing Subview Order Prevents Dragging

2013-05-13 Thread Thomas Wetmore
Not only does this work, it also does not add duplicates to the subviews array. Tom On May 13, 2013, at 11:56 PM, Thomas Wetmore t...@verizon.net wrote: This works. Thanks for the tip. Tom Wetmore On May 13, 2013, at 11:38 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote

Main Window Disappears when Loaded from Separate NIB File

2013-05-07 Thread Thomas Wetmore
I hope someone can put me straight. I created a vanilla Cocoa App. I deleted the window from the MainMenu.xib and created a MainWindow.xib with essentially an identical window (no views). I created a MainWindowController with one overriding method, init, see below. In the app delegate's

Re: Main Window Disappears when Loaded from Separate NIB File

2013-05-07 Thread Thomas Wetmore
Steven, Thanks! That did it. Tom Wetmore On May 7, 2013, at 5:57 PM, Steven Degutis sbdegu...@gmail.com wrote: ARC is on. Retain the window controller. On Tue, May 7, 2013 at 4:52 PM, Thomas Wetmore t...@verizon.net wrote: I hope someone can put me straight. I created a vanilla Cocoa App

Restricting NSWindow Movement

2013-05-06 Thread Thomas Wetmore
Is there a way to restrict the movement of an NSWindow to a frame of another window (that may underly it) or to some other fixed rectangular sub-area on the screen? Searching the web there was a CocoaBuilder thread 12 years ago that indicates that it was unknown how to do this then, implying

Re: Parsing XML Files Consisting of a Sequence of Top Level Elements

2012-10-22 Thread Thomas Wetmore
= NSSelectorFromString(m_selString); if([self respondsToSelector:selector]) [self performSelector:selector withObject:attributeDict]; } On Oct 21, 2012, at 4:02 PM, Graham Cox wrote: On 21/10/2012, at 9:50 PM, Thomas Wetmore t...@verizon.net wrote: Is there a way to easily parse

Parsing XML Files Consisting of a Sequence of Top Level Elements

2012-10-21 Thread Thomas Wetmore
I am using NSXMLDocument to parse XML files. Some of the files are not legal XML because they contain a sequence of top level elements (legal XML must have a unique root element). Currently I handle this issue by programmatically adding a root element to surround the entire file before

Re: Parsing XML Files Consisting of a Sequence of Top Level Elements

2012-10-21 Thread Thomas Wetmore
Doing it programmatically is trivial so I'll stick with it. Tom Wetmore, CBW, DeadEnds Software On Oct 21, 2012, at 6:50 AM, Thomas Wetmore wrote: I am using NSXMLDocument to parse XML files. Some of the files are not legal XML because they contain a sequence of top level elements (legal XML

Reading Very Large Files (300 Mb to 3 Gb)

2012-07-26 Thread Thomas Wetmore
I need to process very large files, and below is the program I use to do the work. I have run this program on data files from very small up to over 3 Gb in length. Much of my testing has been done with files in the 200 to 300 Mb size, and the program works fine at that size. However, when I

Re: Reading Very Large Files (300 Mb to 3 Gb)

2012-07-26 Thread Thomas Wetmore
PM, Greg Parker wrote: On Jul 26, 2012, at 8:20 PM, Thomas Wetmore t...@verizon.net wrote: I need to process very large files, and below is the program I use to do the work. I have run this program on data files from very small up to over 3 Gb in length. Much of my testing has been done

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Thomas Wetmore
The startImmediately parameter is a BOOL, not a string. Use YES instead of @YES and see if that helps. Tom W. On Aug 9, 2011, at 10:44 AM, Amy Gibbs wrote: I'm certainly noy tied to FTP, and I'll have a go with NSURLConnection. I did try to use that for another part but I just couldn't get

Re: Referencing an object after sending a release message to it

2011-08-06 Thread Thomas Wetmore
It may look odd to use an object that has been just released, but there is nothing wrong in this case, and no assumptions are needed here. As soon as the object has been added to the array it has been safely retained on the same thread by well-understood and well-documented rules, and it should

Re: [ANN] CoreParse

2011-06-05 Thread Thomas Wetmore
On Jun 5, 2011, at 6:12 PM, Thomas Davie wrote: On 5 Jun 2011, at 18:22, Jens Alfke wrote: On Jun 5, 2011, at 6:21 AM, Thomas Davie wrote: I've just completed firming up the API and documentation for CoreParse. CoreParse provides a powerful tokenisation and parsing engine, which uses

Re: Cannot find protocol declaration for 'NSTableViewDelegate'

2010-11-05 Thread Thomas Wetmore
to an Xcode one. I may re-summarize and post there if I can't find the problem. Any other suggestion gratefully welcome. Tom Wetmore On Nov 5, 2010, at 12:48 AM, Thomas Wetmore wrote: I've been staring at this error message for the past hour. When trying to compile the code

Cannot find protocol declaration for 'NSTableViewDelegate'

2010-11-04 Thread Thomas Wetmore
I've been staring at this error message for the past hour. When trying to compile the code ... - #import Cocoa/Cocoa.h @interface TWInterpreterController : NSWindowController NSTableViewDelegate ... @end -- the compiler

Interacting Sizes of NSScrollView and its NSClipView and a Custom NSView

2010-10-04 Thread Thomas Wetmore
I have a question based on my confusion over the interacting behaviors of an NSScrollView, its NSClipView and a custom NSView being displayed and clipped. I have an NSScrollView which resizes as its window resizes. Therefore the NSClipView resizes within the NSScrollView as the the window

Re: TUTORIAL: Generating Unique ID Strings

2010-05-14 Thread Thomas Wetmore
I must say that I am constantly amused by the nanniness of the Apple discussion lists, telling people what is safe and what is dangerous. There is nothing dangerous about bit-twiddling code. You test it til it works and then it works forever. It doesn't develop bugs later. My goal was to use

Re: [iPhone] How to create a unique string

2010-05-13 Thread Thomas Wetmore
UUID is the way to go. Here is a category I use to generate unique ids. It uses core foundation to generate a 128-bit UUID and converts that to a 22-character string. The conventional string form of a UUID is 36 characters long. A goal of this code was to minimize the size of the id since my

Re: Bison/Yacc with Objective-C ?

2010-03-12 Thread Thomas Wetmore
that someone on this list (thanks, Filip) knew this was even better, as I have yet to find any actual DOCUMENTATION that states that this would happen! Easter eggs in spring. Tom Wetmore, Chief Bottle Washer, DeadEnds Software // Interpreter.ym // // Created by Thomas Wetmore on 3/10/2010

Answer: Bison with Objective-C Semantic Actions? Works

2010-03-11 Thread Thomas Wetmore
Just a quick thank-you to those who responded to my question about using bison to generate a language intepreter in an Cocoa Foundation/Xcode/Objective-C environment. Xcode does everything needed to make it seamless. I named the yacc file Interpreter.ym and made the semantic value type for all

Bison/Yacc with Objective-C ?

2010-03-09 Thread Thomas Wetmore
I'm porting an old interpreter from a C-based program that used yacc to parse report generating programs and convert them into interpretable programs that could then generate reports. A system akin to XSLT but using a procedural language rather XML as a programming language, ahem. Yacc (and

Re: Bison/Yacc with Objective-C ?

2010-03-09 Thread Thomas Wetmore
immediately. I will have to learn how to replace the built-in YACC rule with something else. Thanks again for your suggestion, Tom Wetmore On Mar 9, 2010, at 6:33 PM, Graham Cox wrote: On 10/03/2010, at 9:00 AM, Thomas Wetmore wrote: Yacc (and Bison) convert yacc files into C files

Re: Bison/Yacc with Objective-C ?

2010-03-09 Thread Thomas Wetmore
Bloomin' magic! Thanks, Filip, it worketh well. Hardy souls all. Tom W. On Mar 9, 2010, at 6:43 PM, F van der Meeren wrote: You can just use your objc magic inside the curly braces... All you have to do is rename your file to *.ym instead of *.y Then all your files will be named *.m To

initWithCoder / unarchiveObjectWithData Memory Management Question

2010-02-19 Thread Thomas Wetmore
I have a memory management question involving the interaction of: - (id) initWithCoder: (NSCoder*) coder from any class that implements NSCoding and + (id) unarchiveObjectWithData: (NSData*) data from the NSKeyedUnarchiver (or any unarchiver) class. After the following lines of code run ...

Re: Julian date

2010-01-07 Thread Thomas Wetmore
Here a couple methods that go to and from modified julian day numbers to day, month, year values. These algorithms are found in a number of standard sources for astronomical computing. These are methods from a date class that I use. They only thing necessary to know about that class is that

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-09 Thread Thomas Wetmore
The approach found by Ron prints the bits in correct order. The suggested replacement prints them backwards. Other correct solutions can be done without recursion, but require a char buffer that must either be reversed or printed in reverse order. Tom Wetmore On Nov 9, 2009, at 5:27 AM,

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-09 Thread Thomas Wetmore
These functions return how many one bits there are in a number, not how many bit positions are needed to represent the number as a bit- string with no leading zeros. They are fun but have no utility in solving the OP's question. TW There are some examples of how to do this here, including

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-09 Thread Thomas Wetmore
I offer the following as a Cocoa solution to the OP's query, whatever that might be taken to mean... (For extra credit: why must the parameter be unsigned?) Tom Wetmore NSString* binaryRepresentation (NSUInteger number) { unichar buffer[64]; NSUInteger n = 0; while

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-09 Thread Thomas Wetmore
Yes, yours is much nicer. TW On Nov 9, 2009, at 12:32 PM, Alastair Houghton wrote: On 9 Nov 2009, at 17:20, Thomas Wetmore wrote: I offer the following as a Cocoa solution to the OP's query, whatever that might be taken to mean... (For extra credit: why must the parameter be unsigned

Re: pointer to structure member reference?

2009-11-02 Thread Thomas Wetmore
Chuck, NSRange and NSSize are C structures, not Objective-C objects. The - operator is the C operator used to access structure fields from a structure pointer. You can use dot notation if you like: (*aRange).location = 0; (*aSize).height = 4.0; But if you do so you are NOT using the new

Re: real verses Virtual memory

2009-10-10 Thread Thomas Wetmore
Please take this off list. Thanks, Tom Wetmore On Oct 10, 2009, at 3:28 PM, Shawn Erickson wrote: I meant to ask if you are accessing the HTTP or using WebKit's DOM API to get at the pages content? Basically how are using using WebView to access the data you need. -Shawn On Sat, Oct 10,

NSOpenPanel Performance the Second Time

2009-10-08 Thread Thomas Wetmore
I use the following function to show an open panel and get the path to a file. I have inserted three NSLog calls. This first time I call this function the panel opens immediately and the three log messages follow each other immediately. The second and every later time I call this function,

Re: Hide an Item on Desktop

2009-10-08 Thread Thomas Wetmore
Dot files have been used by many program, for many years, in all UNIX based systems, for all kinds of reasons. To claim that they are reserved for the system is patently false. Just cd around your file system and try a few ls -a 's here and there. What has being supported by the finder go

Working with an Unsupported Character Encoding (ANSEL)

2009-10-03 Thread Thomas Wetmore
I am writing software to handle GEDCOM files. These files are usually in ASCII format, though some are in ANSEL format (the format they are supposed to be in), and in recent years more and more are in UNICODE encodings. A GEDCOM file is supposed to include an attribute that specifies its

NSTabView Tutorial

2009-07-31 Thread Thomas Wetmore
I'm looking for a simple NSTabView tutorial. I've found references to the MultipleNIBTabView tutorial but I can't find it in the current Xcode Examples area or at the Developer site. Anyone know where it is located, or whether there is another tutorial around? Thanks, Tom Wetmore

Confusion about Lablel Font Size: 13 or 10 ?

2009-07-23 Thread Thomas Wetmore
I am writing a genealogy program that provides a variety of forms for entering data from many sources, eg, censuses, marriage registers. Instead of custom designing user input panels for each type of record, I am using a specification file that describes the fields and tool tips needed for