Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-08 Thread Peter Teeson
> On Nov 7, 2016, at 10:58 PM, Quincey Morris > wrote: > > On Nov 7, 2016, at 19:55 , Rick Mann wrote: >> >> Xcode never gives you controls for setting a class name > > Much like the Spanish Inquisition. > > (Monty Python joke, for those going “Huh?”) Nobody expects the Spanish Inquisition

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread Peter Teeson
This worked for me: find /Applications -path '*Autoupdate.app/Contents/Info.plist' -exec echo {} \; -exec grep -A1 CFBundleShortVersionString '{}' \; | grep -v CFBundleShortVersionString and I got it from this link:

Re: swift: windowControllerDidLoadNib called twice

2015-09-25 Thread Peter Teeson
FWIW before the nice hardcover books there was a single (as I recall) loose leaf binder with documentation for the 128K. > On Sep 25, 2015, at 1:06 PM, Raglan T. Tiger wrote: > > >> On Sep 23, 2015, at 1:08 PM, Boyd Collier wrote: >> >> I’ve been writing code for Macs off-and-on for 30 years

Re: Setting Scheme Environment variable

2014-06-06 Thread Peter Teeson
Sorry please ignore wrong group. On 2014-06-06, at 12:33 PM, Peter Teeson wrote: > Is there some special way to set Scheme Environment variables? > I have tried to set the TERM variable as follows > Name TERM Value xterm-256color > > But the process info shows the environment as

Setting Scheme Environment variable

2014-06-06 Thread Peter Teeson
Is there some special way to set Scheme Environment variables? I have tried to set the TERM variable as follows Name TERM Value xterm-256color But the process info shows the environment as an empty array of 20 zeroes. OTOH I have no problems passing arguments in the -a -b=99 forms and they show

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 3:23 PM, Rui Pacheco wrote: > How did you factor out the application logic from the UI rendering? > On 30 Jan 2014, at 21:16, Jo Meder wrote: >> Hi, >> >> Language philosophy aside, our application is a largish cross platform (Mac, >> Windows, Linux) application written in C+

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 3:16 PM, Jo Meder wrote: > Hi, > Language philosophy aside, our application is a largish cross platform (Mac, > Windows, Linux) application written in C++. The UI framework uses Cocoa for > the Mac back end, which means we're using Objective-C++ to interface with > Cocoa. I've

Re: Preserving undo actions on deleted targets

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 2:20 PM, Kyle Sluder wrote: > … > Apple will do what Apple will do, whenever Apple feels like it. If you > want to avoid rejections, avoid referencing private API at all. > > --Kyle Sluder Alternatively avoid the App store (and save 30%)….. ___

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Peter Teeson
The recent flood of language philosophy is informative and interesting but doesn't address the issues I am interested in. My case is one of using the C++ std lib for the containers to work with traversing a special DAG graph. I've not found any C or Obj-C code that provides those and I see no re

Xcode 5 & Obj-C++

2014-01-29 Thread Peter Teeson
I have a project in which I want to take advantage of the C++ Standard library (primarily because of the container classes - including the special ones). FWIW the project has to traverse a directed acyclic graph (yes I know about the boost lib). For the rest of the project Obj-C and Cocoa is suf

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-09, at 6:42 PM, Peter Teeson wrote: > On 2014-01-09, at 3:58 PM, Ken Thomases wrote: >> On Jan 9, 2014, at 2:35 PM, Peter Teeson wrote: >>> Like many others I'm trying to use one - namely Look Up In Dictionary. >>> Except in my case I want to do it

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-09, at 3:58 PM, Ken Thomases wrote: > On Jan 9, 2014, at 2:35 PM, Peter Teeson wrote: >> Like many others I'm trying to use one - namely Look Up In Dictionary. >> Except in my case I want to do it from within my app, not manually. > On 2014-01-07, at 11:18

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-07, at 11:18 PM, Ken Thomases wrote: > On Jan 7, 2014, at 9:57 PM, Peter Teeson wrote: >> In my app I have this: >> @interface Guess : NSTextField // populated programmatically >> … >> -(void)check; // method to programatically use the Service "Lo

Help to debug NSPerformService..

2014-01-07 Thread Peter Teeson
OS X 10.8.5, Xcode 5.0.2, Document app In my app I have this: @interface Guess : NSTextField // populated programmatically … -(void)check; // method to programatically use the Service "Look Up In Dictionary" @end @implementation Guess ... -(void)check { // Lookup word in dictionary [self sel

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-30 Thread Peter Teeson
On 2013-12-28, at 5:03 PM, Peter Teeson wrote: > On 2013-12-28, at 11:43 AM, Kyle Sluder wrote: >> You can try out my ButtonTester tool to play with these flags in real >> time: <https://github.com/kylesluder/ButtonTester> > Wow you are definitely amazing. I had just star

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Peter Teeson
On 2013-12-28, at 11:43 AM, Kyle Sluder wrote: > You can try out my ButtonTester tool to play with these flags in real > time: Wow you are definitely amazing. I had just started working on a project to do just that sort of thing. You did it first (and

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-27 Thread Peter Teeson
On 2013-12-27, at 12:31 AM, Kyle Sluder wrote: > On Thu, Dec 26, 2013, at 07:08 PM, Peter Teeson wrote: >>[_Cancel setBezelStyle:NSShadowlessSquareBezelStyle]; > Ah. I think I've found (part of) your problem. > NSShadowlessSquareBezelStyle does not and to my knowledge h

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-27 Thread Peter Teeson
On 2013-12-27, at 12:45 AM, Quincey Morris wrote: > Perhaps the problem was that the button was coming out graphite regardless of > the system setting, but your latest test doesn’t confirm that. Bingo! The system setting (Preferences Appearance) was Blue which is what is is when you install eve

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
On 2013-12-26, at 7:01 PM, Uli Kusterer wrote: > On 26 Dec 2013, at 18:49, Peter Teeson wrote: >> _Cancel = [[NSButton alloc]init]; >> [_Cancel setFrame:theButtonFrame]; >> [_Cancel setNeedsDisplay:YES]; > > Several issues here: > > 1) Control tints on

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
On 2013-12-26, at 6:44 PM, Quincey Morris wrote: > On Dec 26, 2013, at 09:49 , Peter Teeson wrote: >> Sets the receiver’s control tint. >> - (void)setControlTint:(NSControlTint)controlTint >> Parameters >> controlTint >> An Designated Initializers value that s

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
Thanks for your kind reply. On 2013-12-26, at 4:51 PM, Keary Suska wrote: > On Dec 26, 2013, at 10:49 AM, Peter Teeson wrote: > If you need something other than the default, I imagine you are expected to > set it yourself. I've checked what the cell's controlTint is imme

Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
MountainLion 10.8.5, Xcode 5.0.2 My code creates some objects in code rather than using IB. This creates an NS Button, tests for the currentControlTint and the Cell controlTint. @interface Document : NSDocument ……… @property NSButton *Cancel; @property NSButton *Check; @end @implementation Docum

Re: SOLVED Unable to centre align NSCell attributed title and alternate attributed title

2013-11-03 Thread Peter Teeson
Solved. I added this attribute to the dictionary and string NSMutableParagraphStyle *centredStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; [centredStyle setAlignment:NSCenterTextAlignment]; (and changed the string to Mutable as well) On 2013-11-01, at 5:12 PM, Peter

Unable to centre align NSCell attributed title and alternate attributed title

2013-11-01 Thread Peter Teeson
OS X Lion 10.7.5, Xcode 4.6.3, Document based app for OS X. The title states my problem. NOTE: IB is not used for anything other than a default empty nib. Views etc are all done programmatically. The 3 x 3 matrix is displayed with the attributed titles and alternates but left aligned. I am un

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
On 2013-09-24, at 9:05 PM, Peter Teeson wrote: > It would be nice if the documentation for NSMatrix mentioned that in the > Overview. > For example "NSMatrix uses flipped coordinates" would have saved everyone > from my noise. 15073135 Documentation Enhancement reques

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
As a final experiment, in my Matrix class I overrode initWithFrame…… and as the first and only line of the override had this: BOOL f = [super isFlipped]; Lo and behold it returned YES which is definitely not the default. I stopped the execution. So from this I conclude that NSMatrix IS flipping t

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
On 2013-09-24, at 1:26 PM, Gary L. Wade wrote: > The object you created has an inset of 40, and since NSMatrix organizes its > cells from the top left, > that is what you are seeing, regardless of whether or not NSMatrix returns > YES for -isFlipped. > If this is a matter of personal discovery, o

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
Let me try again to clarify my lack of understanding. (0) I created a new Document project. All I did in IB Inspector pane was to make the window size 500, 500 and Center Horizontally and Vertically (1) I added a sub-class of NSButtonCell with a class name of Class (it will be used as t

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Peter Teeson
On 2013-09-23, at 1:36 PM, Kyle Sluder wrote: > What’s _theMatrix’s frame? Here once again is the code I posted NSWindow *theWindow = [aController window]; NSView *theContentView = theWindow.contentView; NSRect theContentFrame = theContentView.frame; NSRect theMatrixFrame =

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Peter Teeson
On 2013-09-23, at 1:08 PM, Gary L. Wade wrote: > What I believe you're wanting to know is that cells in a matrix > have their row-column coordinates start from the top left, > so the cell at (0,0) is in the top left of its enclosure matrix and the cell > at row 1 column 0 is below it. Thanks but n

View hierarchy, documentation, and origin location.

2013-09-23 Thread Peter Teeson
Xcode 4.6.3, OS X Lion 10.7.5, my Document app for OS X Here are quotes from the View Programming Guide 2013-08-08 "By default, the graphics environment origin (0.0,0.0) is located in the lower left,…." page 11 "The frame rectangle defines the view's location and size in the superview using th

@property and automatic synthesis of getters and setters.

2013-09-12 Thread Peter Teeson
Xcode 4.6.2 Lion 10.7.5 Programming with Objective-C seems to indicate I can do this: #import #import "Cell.h" //My sub-class @interface Document : NSDocument @property Cell *protoCell; @end and this (i.e. no need to @synthesize): @implementation Document - (id)init { self = [super init];

Re: Re-booting after changing Icons in OS X Doc app

2013-07-18 Thread Peter Teeson
On 2013-07-18, at 10:35 AM, Peter Teeson wrote: > On 2013-07-18, at 1:23 AM, Quincey Morris wrote: >> -- If the new icons don't show up, then you probably have an app bundle >> somewhere that has the old icons, and Launch Services is choosing the bundle >> with the o

Re: Re-booting after changing Icons in OS X Doc app

2013-07-18 Thread Peter Teeson
On 2013-07-18, at 1:23 AM, Quincey Morris wrote: > -- If the new icons don't show up, then you probably have an app bundle > somewhere that has the old icons, and Launch Services is choosing the bundle > with the old icons to represent your app. > > This sometimes happens when you have built fo

Re-booting after changing Icons in OS X Doc app

2013-07-17 Thread Peter Teeson
OS X Lion 10.7.5, Xcode 4.6.3 I have my document app working with the correct sized icons for the app and saved documents. However from the Googling I did and the experiments I performed it seems I have to use terminal to (1) /System/Library/Frameworks/CoreServices.framework/Versions/A/Framewo

Re: Problem saving document with my doc icon

2013-07-16 Thread Peter Teeson
On 2013-07-15, at 10:22 PM, Kyle Sluder wrote: > On Jul 15, 2013, at 7:14 PM, Peter Teeson wrote: >> On 2013-07-13, at 3:43 PM, Peter Teeson wrote: >>> Thanks for helping me. I dug out the docs you recommended and will learn. >> Read them all and looked at example plist

Re: Problem saving document with my doc icon

2013-07-15 Thread Peter Teeson
On 2013-07-13, at 3:43 PM, Peter Teeson wrote: > Thanks for helping me. I dug out the docs you recommended and will learn. Read them all and looked at example plist in TextEdit. I don't want any other app to read or edit my format. So have not exported the UTI. Still cannot get it to w

Re: Problem saving document with my doc icon

2013-07-13 Thread Peter Teeson
2013-07-13, at 2:48 PM, Kyle Sluder wrote: > On Jul 13, 2013, at 11:38 AM, Peter Teeson wrote: > >> Well here is my Info.plist from the Build directory app Package Contents in >> XML form > > Your Info.plist is lacking UTI declarations entirely. You need to declare an

Re: Problem saving document with my doc icon

2013-07-13 Thread Peter Teeson
On 2013-07-13, at 1:36 PM, Kyle Sluder wrote: > >> On Jul 13, 2013, at 10:15 AM, Peter Teeson wrote: >>> >>> On 2013-07-13, at 12:57 PM, Kyle Sluder wrote: >>> >>>> On Jul 13, 2013, at 8:23 AM, Peter Teeson wrote: >>>>> The buil

Re: Problem saving document with my doc icon

2013-07-13 Thread Peter Teeson
On 2013-07-13, at 12:57 PM, Kyle Sluder wrote: > On Jul 13, 2013, at 8:23 AM, Peter Teeson wrote: > >> The built app has the desired app icon. But the documents I save do not. >> Here is the Info.plist from the app in the Build folder: > > There is no plist attached

RE: Problem saving document with my doc icon

2013-07-13 Thread Peter Teeson
On 2013-07-12, at 5:13 PM, Jens Alfke wrote: > On Jul 12, 2013, at 12:29 PM, Peter Teeson wrote: >> In my Document based app I am having trouble saving a document with my >> document icon. >> The Finder still shows the file with the folder icon. > > You don't

Problem saving document with my doc icon

2013-07-12 Thread Peter Teeson
OS x Lion 10.7.5, Xcode 4.6.3 In my Document based app I am having trouble saving a document with my document icon. The Finder still shows the file with the folder icon. Here is my code: - (NSFileWrapper *)fileWrapperOfType:(NSString *)typeName error:(NSError *__autoreleasing *)outError{

Handling [super init] returning nil

2013-05-29 Thread Peter Teeson
In Apple's Concepts in Objective-C Programming discussing Issues with Initializers there is this code snippet id anObject = [[MyClass alloc] init]; if (anObject) { [anObject doSOmething]; // more messages… } else { // handle error } All the code I Googled does not address the nil case in

Restoring saved fileWrapper items problem

2013-05-13 Thread Peter Teeson
MacOS 10.7.5 Lion Xcode 4.6.2 My single window NSDocument app has 2 NSImages each in their own instances of my sub-classed NSImageView. It also has some colour wells and text labels. There are other objets I intend to add later. I override - (NSFileWrapper *)fileWrapperOfType:(NSString *)typeNa

Cascading windows

2012-12-05 Thread Peter Teeson
Xcode 4.5.2, Lion 10.7.5 My app is a Document app and I implemented -(void)makeWindowControllers. It could have several documents open at the same time. In particular I want to cascade the window when a New document is opened. I've read up on this and am aware of the NSWindow method - (NSPoint

Re: Object not being drawn in Cmd + N. Why? SOLVED

2012-12-05 Thread Peter Teeson
On Oct 25th 2012 I posted about this. I finally got around to digging into what the cause was and have now got my app working correctly (or at least the way I want it to). In summary it was all related to saving and restoring the graphic context correctly in -drawRect. In my case I use a number

Re: Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Peter Teeson
tartColor:startColorWell]; } My code in the sub-class .m - (void)setStartColor:color{ startColor = color; [self setNeedsDisplay:YES]; } -(void)changeStartColor:(NSColorWell *)sender{ [self setStartColor:[sender color]]; } > On 25 Oct 2012, at 21:16, Peter Teeson wrote: >>

Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Peter Teeson
Xcode 4.5.1 Lion 10.7.4 I have desktop Document project with a sub-class of NSView. Debug only version as of now. The Window has 2 instances of this sub-class (basically squares that have gradients); The only difference between the two instances are the start and stop mid points for the gradient

list mail not coming through today anyone else have this problem?

2012-08-15 Thread Peter Teeson
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Re: 32-bit on 10.8

2012-08-15 Thread Peter Teeson
On 2012-08-13, at 3:40 PM, Greg Parker wrote: > On Aug 11, 2012, at 6:16 PM, Jayson Adams wrote: >> What I have been ranting and raving about is the fact that the 64-bit >> porting guide currently states that you may not want to move to 64-bit. >> That is the official advice any straggler devel

Should I pixel align in a View subclass in method -initWithFrame:frame?

2012-05-08 Thread Peter Teeson
This is a continuation of my previous issue stroking a bezier path. In my sub-class -initWithFrame:frame I do the following: self = [super initWithFrame:frame]; if (self) { // Initialization code here. frame.size.width = 200.0; frame.size.height = 200.0; fram

Re: Strange issue in stroking a bezier path

2012-05-08 Thread Peter Teeson
On 2012-05-05, at 7:55 PM, Kyle Sluder wrote: > On May 5, 2012, at 4:46 PM, Jens Alfke wrote: >> >> (IIRC there are some AppKit geometry utility functions that will adjust >> coordinate values to fit pixel boundaries in a resolution-independent way. I >> don’t remember their names offhand.) > -

Re: Strange issue in stroking a bezier path

2012-05-05 Thread Peter Teeson
First of all thanks Jens for taking the time to reply and educate me. On 2012-05-05, at 12:40 PM, Jens Alfke wrote: > On May 5, 2012, at 7:41 AM, Peter Teeson wrote: >> But I did not realize that the bounds stroke was straddling the view content >> edges. >> How did you lea

Re: Strange issue in stroking a bezier path

2012-05-05 Thread Peter Teeson
On 2012-05-05, at 11:29 AM, Andy Lee wrote: > On May 5, 2012, at 10:41 AM, Peter Teeson wrote: >> Thanks so much Ken for that help. I am using NSInsetRect later on in my >> actual code for something else >> But I did not realize that the bounds stroke was straddling the v

Re: Strange issue in stroking a bezier path

2012-05-05 Thread Peter Teeson
On 2012-05-04, at 10:58 PM, Ken Thomases wrote: > On May 4, 2012, at 8:19 PM, Peter Teeson wrote: > >> - (void)drawRect:(NSRect)dirtyRect >> { >> // Drawing code here. >> NSRect bounds = [self bounds]; >> NSBezierPath *path = [NSBezierPath bezierPat

Re: Strange issue in stroking a bezier path

2012-05-04 Thread Peter Teeson
for your thoughts but, with respect, I think we are dealing with different issues. > On May 4, 2012, at 9:19 PM, Peter Teeson wrote: >> Xcode 4.3.2, Lion 10.7.3, >> Apple 30" Cinema Display, Samsung SyncMaster 950p >> >> Consider the following simple drawRect to

Strange issue in stroking a bezier path

2012-05-04 Thread Peter Teeson
Xcode 4.3.2, Lion 10.7.3, Apple 30" Cinema Display, Samsung SyncMaster 950p Consider the following simple drawRect to demonstrate the issue - (void)drawRect:(NSRect)dirtyRect { // Drawing code here. NSRect bounds = [self bounds]; NSBezierPath *path = [NSBezierPath bezierPathWithRect

Re: Placing Cells in an NSMatrix

2012-04-04 Thread Peter Teeson
On 2012-04-04, at 6:52 PM, Peter Teeson wrote: > On 2012-04-04, at 5:02 PM, Fritz Anderson wrote: >> On 4 Apr 2012, at 2:20 PM, Peter Teeson wrote: >>> Given a 3 x 3 Matrix which is a sub-class of NSMatrix with Cells >>> sub-classed from NSButton >>> the X

Re: Placing Cells in an NSMatrix

2012-04-04 Thread Peter Teeson
On 2012-04-04, at 5:02 PM, Fritz Anderson wrote: > On 4 Apr 2012, at 2:20 PM, Peter Teeson wrote: >> Given a 3 x 3 Matrix which is a sub-class of NSMatrix with Cells sub-classed >> from NSButton >> the X origins of column 0 cells seem to be 1.0 point inside the Matrix >

Placing Cells in an NSMatrix

2012-04-04 Thread Peter Teeson
Xcode 4.3, Lion 10.7.3 Given a 3 x 3 Matrix which is a sub-class of NSMatrix with Cells sub-classed from NSButton the X origins of column 0 cells seem to be 1.0 point inside the Matrix bounds. So if I want to stroke the Matrix bounds with a line width of e.g. 4.0 points it draws over the left a

Re: Stenography

2012-04-02 Thread Peter Teeson
On 2012-04-02, at 2:24 PM, Lee Ann Rucker wrote: > > On Apr 2, 2012, at 8:18 AM, Peter Teeson wrote: > >> On 2012-04-02, at 8:46 AM, vincent habchi wrote: >>> Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a >>> écrit : >>>> He wants to writ

Re: drawRect using a Category

2012-04-02 Thread Peter Teeson
Alfke wrote: > On Mar 31, 2012, at 6:46 PM, Peter Teeson wrote: >> In my app there is only the one NSMatrix instance > > There's no way to tell, really. For all I know, the Open or Save panels might > use NSMatrix. > Or the Find panel or the font panel. Heck, I believe

Re: Stenography

2012-04-02 Thread Peter Teeson
On 2012-04-02, at 8:46 AM, vincent habchi wrote: > Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a > écrit : >> He wants to write an app that will take a picture of shorthand and turn it >> into text. > Stenography (Greek stenos-: reduced) is an obsolete system of script > secretaries used to take

Re: drawRect using a Category

2012-03-31 Thread Peter Teeson
o meditate some more. respect…. Peter On 2012-03-31, at 10:24 AM, David Duncan wrote: > On Mar 30, 2012, at 8:31 PM, Peter Teeson wrote: > >> In a Document app I have an NSMatrix. I only need to override drawRect. >> Rather than using a sub-class, which seems overkill to me,

drawRect using a Category

2012-03-30 Thread Peter Teeson
Xcode 4.3 Lion 10.7.3 In a Document app I have an NSMatrix. I only need to override drawRect. Rather than using a sub-class, which seems overkill to me, I decided to try a Category instead. So here's what I did (and it seems to work.) But since this is the first time I've tried such a thing I'm a

Re: syslog with strings?

2012-03-23 Thread Peter Teeson
On 2012-03-23, at 10:08 PM, Prime Coderama wrote: > Trying to write out syslog entries containing strings but they don't register. > > E.g. > > // where person.name is an NSSTring > syslog(LOG_NOTICE, "Some string %@", person.name); > ___ > > Cocoa-d

Re: creating a favorites bar

2012-03-19 Thread Peter Teeson
Did you look at NSToolbar and NSToolbar item? Also the sample code SimpleToolbar or ToolbarSample? If that isn't what you need perhaps you can expand bit more on what you need? respect…. Peter On 2012-03-19, at 12:20 PM, Rick C. wrote: > Hi, > > Any tips on how I might create a favorites bar

Re: const correctness

2012-03-19 Thread Peter Teeson
Amen. On 2012-03-19, at 11:55 AM, Jens Alfke wrote: > I don’t mean to be rude, but I’m about at my personal limit of patience with > the amount of off-topic stuff one has to wade through on the Apple lists > lately (especially xcode-users, but here too.)

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

2011-12-29 Thread Peter Teeson
On 2011-12-29, at 9:43 PM, Conrad Shultz wrote: > "textField" is the name of the *property*. "_textField" is the name of > the (private) *instance variable* (ivar) that is backing the property. Thanks Conrad for that full explanation which I now fully understand. Actually the way I think of it n

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

2011-12-29 Thread Peter Teeson
Thanks for your reply Ken. But I still don't understand. See bottom post. On 2011-12-29, at 5:23 PM, Ken Thomases wrote: > On Dec 29, 2011, at 3:38 PM, Peter Teeson wrote: >> I'm familiarizing myself with Xcode 4.2.1 under Lion 10.7.2 so am doing the >> "Your Fi

Code error in Your First Mac App tutorial..

2011-12-29 Thread Peter Teeson
I'm familiarizing myself with Xcode 4.2.1 under Lion 10.7.2 so am doing the "Your First Mac App" tutorial. This code snippet from the tutorial is incorrect and causes an error in compilation. if (sender == textField) { senderName = @"textField"; }……. The error is "Use of undeclared iden

Q: An App for both OS X and iOS

2011-12-21 Thread Peter Teeson
Using Xcode 4.2.1 on Lion 10.7.2. Xcode 4 is new to me for real work. I've just been doing reading and tutorials. (So far I like what I see very much) I want to start a new workspace for an app that will be for both Mac OS X and iOS. This will be my first iOS app. The model part of MVC is goin