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,

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

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: 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 ptee...@icloud.com 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

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: Preserving undo actions on deleted targets

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 2:20 PM, Kyle Sluder k...@ksluder.com 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%)…..grin

Re: Xcode 5 Obj-C++

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 3:16 PM, Jo Meder jome...@ihug.co.nz 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

Re: Xcode 5 Obj-C++

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 3:23 PM, Rui Pacheco rui.pach...@gmail.com wrote: How did you factor out the application logic from the UI rendering? On 30 Jan 2014, at 21:16, Jo Meder jome...@ihug.co.nz wrote: Hi, Language philosophy aside, our application is a largish cross platform (Mac, Windows,

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

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-07, at 11:18 PM, Ken Thomases k...@codeweavers.com 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 Look Up In Dictionary @end

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-09, at 3:58 PM, Ken Thomases k...@codeweavers.com 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 PM, Ken

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-09, at 6:42 PM, Peter Teeson ptee...@icloud.com wrote: On 2014-01-09, at 3:58 PM, Ken Thomases k...@codeweavers.com 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

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

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 ptee...@icloud.com wrote: On 2013-12-28, at 11:43 AM, Kyle Sluder k...@ksluder.com 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

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 k...@ksluder.com 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 started working on a project to do just that sort of thing. You did

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 quinceymor...@rivergatesoftware.com 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

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 k...@ksluder.com 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 has never

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

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 cocoa-...@esoteritech.com 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

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 quinceymor...@rivergatesoftware.com wrote: On Dec 26, 2013, at 09:49 , Peter Teeson ptee...@icloud.com wrote: Sets the receiver’s control tint. - (void)setControlTint:(NSControlTint)controlTint Parameters controlTint An Designated Initializers value

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 witness.of.teacht...@gmx.net wrote: On 26 Dec 2013, at 18:49, Peter Teeson ptee...@icloud.com wrote: _Cancel = [[NSButton alloc]init]; [_Cancel setFrame:theButtonFrame]; [_Cancel setNeedsDisplay:YES]; Several issues here: 1) Control tints

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

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

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,

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

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 request filed in bugreporter

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 the

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 not

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 =

@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 Cocoa/Cocoa.h #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 =

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 for

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 old icons to represent your app

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)

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 ptee...@icloud.com 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 in TextEdit. I

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 work

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 ptee...@icloud.com 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 need any code

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 ptee...@icloud.com 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 to your message

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 ptee...@icloud.com wrote: On 2013-07-13, at 12:57 PM, Kyle Sluder wrote: On Jul 13, 2013, at 8:23 AM, Peter Teeson ptee...@icloud.com wrote: The built app has the desired app icon. But the documents

Re: Problem saving document with my doc icon

2013-07-13 Thread Peter Teeson
-07-13, at 2:48 PM, Kyle Sluder wrote: On Jul 13, 2013, at 11:38 AM, Peter Teeson ptee...@icloud.com 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 UTI for your

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

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

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

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 -

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

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

2012-10-25 Thread Peter Teeson
]; } 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 ptee...@me.com wrote: Xcode 4.5.1 Lion 10.7.4 I

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 jay...@circusponies.com 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

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:

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 j...@mooseyard.com 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

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;

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 bezierPathWithRect:bounds]; [path stroke

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 view content edges. How did

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 learn that? If you think

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

Re: Strange issue in stroking a bezier path

2012-05-04 Thread Peter Teeson
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 demonstrate the issue - (void)drawRect:(NSRect)dirtyRect { // Drawing code here. NSRect

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

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 bounds. So if I want

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 origins of column 0 cells seem to be 1.0 point

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 trea...@silverfieldstech.com 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

Re: drawRect using a Category

2012-04-02 Thread Peter Teeson
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 in the old days of OpenStep, menus were

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 trea...@silverfieldstech.com a écrit : He wants to write an app that will take a picture

Re: drawRect using a Category

2012-03-31 Thread Peter Teeson
. respect…. Peter On 2012-03-31, at 10:24 AM, David Duncan wrote: On Mar 30, 2012, at 8:31 PM, Peter Teeson ptee...@me.com 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, I decided to try a Category instead

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

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-dev mailing

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: 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

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

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 First Mac App tutorial. This code snippet

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. snip Thanks Conrad for that full explanation which I now fully understand. Actually the way I think of it

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