> 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,
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:
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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 =
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 =
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
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
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)
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
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
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
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
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
-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
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{
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
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
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
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
-
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
];
}
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
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
___
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:
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
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;
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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.)
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
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
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
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
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
72 matches
Mail list logo