Re: setFontManagerFactory:

2017-01-27 Thread Raglan T. Tiger

> On Jan 27, 2017, at 1:48 AM, Alastair Houghton  
> wrote:
> 
> set a breakpoint on [NSFontManager sharedFontManager] then start your program 
> and see what the backtrace looks like (that will tell you where the first 
> invocation is;


Great idea.  I did move setFontManagerFactory to main.m and still got no  hit 
on the init method.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


setFontManagerFactory:

2017-01-26 Thread Raglan T. Tiger
According to the docs if one does:

   [ NSFontManager setFontManagerFactory:[ EFontManager class ] ];

before the main nib file is loaded and where EFontManager is a subclass of 
NSFontManager and EFontManager does implement init as its designated 
initializer.

My problem is that my init method for EFontManager is never called.

@implementation EFontManager

- (instancetype)init
{
self = [super init];
if (self)
{
NSLog ( @"EFontManager" );
}
return self;
}


So, what secret sauce am I missing for my init method to be called?





-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: App with QuickLook Generator

2016-12-30 Thread Raglan T. Tiger
> On Dec 30, 2016, at 5:58 AM, Uli Kusterer  
> wrote:
> 
>  I guess Apple got around to sandboxing that process.


This statement seems confusing ... if Apple got around to:

Sandbox: QuickLookSatelli(985) deny file-read-data

why would this only apply to an older OS version, 10.9.5 but not apply to newer 
10.10.x and above versions?

I just sneed some clarification.


-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


App with QuickLook Generator

2016-12-29 Thread Raglan T. Tiger
I have a QL Generator in y App Bundle ... been there since, we'll, a long time. 
 The ql generator needs to read a file to get some instructions. The sea always 
worked fine.

Now building with 10.11 SDK on XC 7.3.1the ql generator is denied reading the 
instruction file on OS X version 10.9.5 with this message:

Sandbox: QuickLookSatelli(985) deny file-read-data / Users / x / Documents 
/ y / dict.plist 

This does not occur on 10.11.x or 10.12.1 and never occurred before building  
as described above.

So, what am I missing re:Sandbox (even though the app is not sandboxed)





-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: initWithRequest:delegate:startImmediately

2016-10-24 Thread Raglan T. Tiger
Holy connection batman ... just put



NSAppTransportSecurity

NSAllowsArbitraryLoads





in the info.plst.

Sorry for the noise ... but it is Monday morning.

-rags



> On Oct 24, 2016, at 11:09 AM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
> 
> 
> NSURLRequest initWithRequest:delegate:startImmediately has been deprecated 
> and I am not sure what to use in its place.
> 
> Building with xc 6.2 and sdk 9 with a deploy target of 10.5 all is well, even 
> running on Sierra.
> 
> Building with xc 7.3.1 and sdk 10.11 this code:
> 
> NSURLConnection* connection = [[NSURLConnection alloc] 
> initWithRequest:request delegate:self startImmediately:YES];
> 
> fails immediateley calling it delegate method connection:didFailWithError: 
> with error -1022
> 
> running on El Capitan or Sierra.
> 
> What is going on or what don't I understand.
> 
> 
> Or, should I move to NSURLSession ... I haven't found yet if NSURlSession 
> will deploy on 10.5
> 
> Any help is sorely needed.
> 
> 
> 
> -rags
> 
> 
> 
> ___
> 
> 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.com/mailman/options/cocoa-dev/koko%40highrolls.net
> 
> This email sent to k...@highrolls.net

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

initWithRequest:delegate:startImmediately

2016-10-24 Thread Raglan T. Tiger

NSURLRequest initWithRequest:delegate:startImmediately has been deprecated and 
I am not sure what to use in its place.

Building with xc 6.2 and sdk 9 with a deploy target of 10.5 all is well, even 
running on Sierra.

Building with xc 7.3.1 and sdk 10.11 this code:

NSURLConnection* connection = [[NSURLConnection alloc] initWithRequest:request 
delegate:self startImmediately:YES];

fails immediateley calling it delegate method connection:didFailWithError: with 
error -1022

running on El Capitan or Sierra.

What is going on or what don't I understand.


Or, should I move to NSURLSession ... I haven't found yet if NSURlSession will 
deploy on 10.5

Any help is sorely needed.



-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Raglan T Tiger


> On Oct 22, 2016, at 3:26 PM, Jens Alfke  > wrote:
> 
> specifically with handling dates

what, y2k ?

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Optimization Level

2016-10-17 Thread Raglan T. Tiger
Moving , finally, to Xcode 7.3.1, I get a weird bug.

If I build a release configuration with the recommended optimization level 
(fastest, smallest) then this code

void x::Clear(apointList )

{

if ( !  )

return;

}

never returns when apointlis  = 0x as shown in the debugger.

But if I set the optimization level (none) then the code works properly.  

Of course Apple says never ship release code with optimization level none, 
always use faster,smallest

What am I missing ?

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Justification of collection cells in sections

2016-08-02 Thread Raglan T. Tiger

> 
> Any ideas on how to make the single item section flow from left to right 
> rather than centered?


Accessing the Layout Attributes 

 <> <> <> <> <>frame
 

 Property
 <> <> <> <> <>bounds
 

 Property
 <> <> <> <> <>center
 

 Property
The center point of the item.

Declaration
SWIFT
var center: CGPoint 

OBJECTIVE-C
@property(nonatomic) CGPoint  
center
Discussion
The center point is specified in the coordinate system of the collection view. 
Setting the value of this property also updates the origin of the rectangle in 
the frame 

 property. 

Availability
Available in iOS 6.0 and later.


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: KERN_INVALID_ADDRESS

2016-06-14 Thread Raglan T. Tiger

> On Jun 14, 2016, at 2:51 AM, Alastair Houghton  
> wrote:
> 
> Run your program in the debugger; it will stop when it tries to access the 
> invalid address and you can investigate its state to see why it went wrong.


I would do that but it does not crash on my machine.  It crashes on two 
customers macho's soI am at a loss as to the appropriate next steps.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: KERN_INVALID_ADDRESS

2016-06-13 Thread Raglan T. Tiger
Or , how can an address held in a variable be checked for validity?

-rags



> On Jun 13, 2016, at 1:08 PM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
> 
> 
> How can one find the variable containing the KERN_INVALID_ADDRESS s indicated 
> by
> 
> Exception Codes:   KERN_INVALID_ADDRESS at 0x01a9
> 
> from a crash report?
> 
> -rags
> 
> 
> 
> 
> ___
> 
> 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.com/mailman/options/cocoa-dev/koko%40highrolls.net
> 
> This email sent to k...@highrolls.net


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

KERN_INVALID_ADDRESS

2016-06-13 Thread Raglan T. Tiger

How can one find the variable containing the KERN_INVALID_ADDRESS s indicated by

Exception Codes:   KERN_INVALID_ADDRESS at 0x01a9

from a crash report?

-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ScalableUserInterface.framework

2016-02-15 Thread Raglan T. Tiger



> On Feb 15, 2016, at 4:35 PM, Uli Kusterer  
> wrote:
> 
> Wildly guessing here:

I went back to 10.9 sdk and it links.

 I do not link with QuartzCore just Quartz.

In the Build Phases of the target settings is where I pick frameworks and libs 
tolling with so what ever Xcode is pointing me to their is what i used ... and 
these are in System/Library/Frameworks



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ScalableUserInterface.framework

2016-02-15 Thread Raglan T. Tiger
A target that has been building suddenly throws a link error:

ld: file not found: 
/System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
 for architecture i386



Other targets in the project build jus fine linking the same frameworks.

Any help would be most appreciated.

(Yes, I know this is a Cocoa list, but this is where the smart people are to be 
found!)





-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: UISearchBar covers status bar

2016-02-02 Thread Raglan T. Tiger


> On Feb 2, 2016, at 1:08 PM, Rick Mann  wrote:
> 
> Apple really screwed the pooch with the status bar change in iOS 7; I've had 
> nothing but problems with it ever since.

Or, did Apple fix a screwed pooch and thus your app needs to be unscrewed by 
refactoring?

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Obj-C - your thoughts on hiding data members?

2016-01-27 Thread Raglan T. Tiger



> On Jan 27, 2016, at 11:49 AM, Carl Hoefs  
> wrote:
> 
> If I can't make a punched card deck out of it, it ain't REAL source code.

Would that be punched on 80 or 96 column cards ?

-rags

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Best way to get a file path for presentation to the user

2015-12-21 Thread Raglan T. Tiger

> On Dec 19, 2015, at 12:31 PM, Lee Ann Rucker  wrote:
> 
> Popup style is appropriate where the most important info is the last part but 
> sometimes they want to see the whole path. Standard style is for where the 
> whole path is important.

It is an excellent control.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger

In my cell based NSOutlineView subclass I implement -mouseDown where I check 
for double-click. I am able to set a placeholder string.

How does one set the NSText object with a string value that can be edited?


-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger
> On Nov 11, 2015, at 2:38 PM, Graham Cox  wrote:
> 
> You don’t need to subclass NSOutlineView here. Double-clicks are already 
> detected and trigger the -doubleAction: be sent to the target of the control. 
> This is usually sufficient. If you leave everything standard, then editing 
> text cells should ‘just work’ as long as you set the necessary flags to allow 
> editing, and implement the dataSource methods that update the model for the 
> edited property.

I have a subclass for reasons other than what is being discussed here.  My 
issue is, if I do nothing then, when the user double-clicks an item in the 
outline a text field is displayed and the user can enter a new string, press 
enter and all works well.  My model is updated etc, etc. 

How do I put the current string from the item into the edit field ?

I can put a placeholder string there but this is not an editable value.

-rags

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -clickedRow

2015-11-06 Thread Raglan T. Tiger



> On Nov 5, 2015, at 1:51 PM, Jens Alfke  wrote:
> 
> Convert the position to local coords, then call -rowAtPoint:.


I woke up last night and thought exactly that which I have used before ... must 
be dementia on the rise !

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

-clickedRow

2015-11-05 Thread Raglan T. Tiger
I subclass NSTableView to catch -rightMouseDown 

In -rightMouseDown I call [self clickedRow] which always returns -1 in a row or 
not in row

What should I be doing to get the clicked row?




-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CGContextShowTextAtPoint

2015-10-14 Thread Raglan T. Tiger


> On Oct 13, 2015, at 4:56 PM, Graham Cox  wrote:
> 
> Converting this to use string drawing is easy enough:
> 
> NSDictionary* attributes = @{NSFontAttributedName:sysFont};
> NSString* myText = [NSString stringWithUTF8String:txt];   // 
> check encoding if not UTF-8
> 
> [myText drawAtPoint:pt withAttributes:attributes];


I did all the above ... now my text prints upside down andI cannot get it to 
size up regardless of the font size.

Any direction is much appreciated.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CGContextShowTextAtPoint

2015-10-14 Thread Raglan T. Tiger

> On Oct 13, 2015, at 4:42 PM, Wim Lewis <w...@omnigroup.com> wrote:
> 
> 
> On Oct 13, 2015, at 3:02 PM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
>> CGContextShowTextAtPoint (ctx, pt.x,pt.y,(const char*)txt, len );
>> 
>> This has printed my text UNTIL 10.11.
>> 
>> I see that CGContextShowTextAtPoint is deprecated in 10.9 ... is it gone in 
>> 10.11?
> 
> As Quincey Morris says, Core Text 

I have text printing in the correct orientation now using

CFAttributedStringRef attrString = 
CFAttributedStringCreate(kCFAllocatorDefault, cfstr, attributes);

CTLineRef line = CTLineCreateWithAttributedString(attrString);

// Set text position and draw the line into the graphics context
CGContextSetTextPosition(ctx, pt.x, pt.y);
CTLineDraw(line, ctx);

Now, I cannot increase the font size.  I set up attributes as:

CFStringRef keys[] = { kCTFontAttributeName };
CFTypeRef values[] = { [ NSFont systemFontOfSize:48 ] };

CFDictionaryRef attributes =
CFDictionaryCreate(kCFAllocatorDefault, (const void**),
   (const void**), sizeof(keys) / 
sizeof(keys[0]),
   ,
   );


and see my attributed string as:

667 x, 2.3 y{
NSFont = "\".HelveticaNeueDeskInterface-Regular 48.00 pt. P [] (0x1128ca30) 
fobj=0x11d04390, spc=12.93\"";
}

but the result is like 8 pt not 48. 
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CGContextShowTextAtPoint

2015-10-14 Thread Raglan T. Tiger

-rags



> On Oct 14, 2015, at 2:37 PM, David Duncan  wrote:
> 
> Ensure that the text matrix is sane 


I have been doing this:

CGAffineTransform t = CGAffineTransformMakeScale (1.0, -1.0);
CGContextSetTextMatrix (ctx, t);


changing the sx and sy just scrunches the text into a blob

what the crusade am I not understanding?


-rags


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CGContextShowTextAtPoint

2015-10-14 Thread Raglan T. Tiger


> On Oct 14, 2015, at 10:02 AM, Jens Alfke  wrote:
> 
> The view is probably using flipped coordinates. Look up flipped coordinates 
> in the Cocoa view documentation to understand what they are and how to work 
> around the problem.
> 
> As for the size, have you set the size of the NSFont in ‘sysFont’?
> 

I am using -graphicsContextWithBitmapImageRep and then adding text annotations. 
 The reason for using CGContextShowTextAtPoint in the first place was to solve 
this problem when drawing NSStrings.

I guess the real question is "How to you draw NSStrings as flipped == YES when 
the current NSGraphicsContext is graphicsContextWithBitmapImageRep which is 
flipped = NO.


-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

CGContextShowTextAtPoint

2015-10-13 Thread Raglan T. Tiger
In my printing code I do some setup:

NSFont *sysFont = [NSFont systemFontOfSize:10];
NSString *sysFontName = [sysFont fontName];
CGContextSelectFont(ctx, [sysFontName 
cStringUsingEncoding:NSASCIIStringEncoding], 90, kCGEncodingMacRoman);
CGContextSetTextDrawingMode(ctx,  kCGTextFill);
Then:

CGContextShowTextAtPoint (ctx, pt.x,pt.y,(const char*)txt, len );

This has printed my text UNTIL 10.11.

I see that CGContextShowTextAtPoint is deprecated in 10.9 ... is it gone in 
10.11?

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: swift: windowControllerDidLoadNib called twice

2015-09-25 Thread Raglan T. Tiger

> On Sep 23, 2015, at 1:08 PM, Boyd Collier  wrote:
> 
>  I’ve been writing code for Macs off-and-on for 30 years,


I still have my original copy of Inside Macintosh !

IM Fun 1 
IM Fun 2 


-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: [ALERT:Possible Phishing] Beep ( duration, frequency )

2015-09-23 Thread Raglan T. Tiger

I found that Glass, Ping  and Pop are real close to the Windows frequencies 
used.  

Mark it implemented.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Beep ( duration, frequency )

2015-09-23 Thread Raglan T. Tiger

-rags



> On Sep 23, 2015, at 7:18 PM, k...@hh.iij4u.or.jp wrote:
> 
> If you want to use different sounds for some alerts or notifications, you can 
> use sytem provided sounds, such as "Basso", "Frog", "Submarine", etc.
> 
>  NSSound *sound = [NSSound soundNamed:@"Submarine"];
>  [sound play];
> 

After I frustrated myself I realized your recommendation.  Now I want to make 
arbitrary sounds (am I a recording engineer to?) to use with +soundNAMED so any 
suggestions while I Alphabet?

-rags

0  1 
 2 

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Beep ( duration, frequency )

2015-09-23 Thread Raglan T. Tiger


> On Sep 23, 2015, at 5:30 PM, Jens Alfke  wrote:
> 
> What is it you’re trying to do?


I want code that is this simple on Windows:

DWORD freq = 587;
if(!something) freq = 659;
if(another) freq = 523;
Beep(freq, 150);
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Beep ( duration, frequency )

2015-09-23 Thread Raglan T. Tiger
Windows has a Beep function:

BOOL WINAPI Beep(
  _In_ DWORD dwFreq,
  _In_ DWORD dwDuration
);

Is there anything this easy for OS X?

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Beep ( duration, frequency )

2015-09-23 Thread Raglan T. Tiger

-rags



> On Sep 23, 2015, at 5:49 PM, Ed Wynne  wrote:
> 
> That said, synthesizing beep-like-waveforms isn’t very hard. You should ask 
> google, or stack overflow.

Well I have googled and see many more  lines of code that the simple windows 
Beep ... PIA

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: iOS 9 or Watch App

2015-09-22 Thread Raglan T. Tiger


> On Sep 21, 2015, at 3:58 PM, Quincey Morris 
>  wrote:
> 
> Have you checked to make sure you don’t have a copy of Xcode 6 on an external 
> disk? Note that you can right-click on an existing project, and the Finder 
> will pop up a menu that shows you all apps able to open the project, 
> including the version numbers, with different versions listed separately.


The Open With sub-menu shows only one entry, Xcode 6.2. I will update to the 
alleged 7.0 version tonight and report back my findings.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: iOS 9 or Watch App

2015-09-21 Thread Raglan T. Tiger

-rags



> On Sep 21, 2015, at 11:57 AM, Conrad Shultz  wrote:
> 
> 
>> On Sep 21, 2015, at 6:20 AM, Michael David Crawford  
>> wrote:
>> 
>> however you may only have one version of the command line tools
>> installed in /usr/bin and the like.
> 
> You might take a look at 
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
>  
> 
> 
> -Conrad


I don't keep multiple versions of Xcode and in the past anytime I updated the 
currently installed version was overwritten as I expect.

When Xcode 7 was installed ( not the beta preview ) I expected the same 
behavior.

Seems like some kind of Apple glitch.

I restored version 6.2 from Time Machine and now the App Store shows Xcode 7 as 
an available update.

Does anyone know if Xcode 7 should show as version 7 in the Finder  preview 
panel?

-rags







___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

iOS 9 or Watch App

2015-09-20 Thread Raglan T. Tiger
So, against my better judgement, I updated to Xcode 7.

The installed version is 6.31, there ar no iOS9 or Watch SDKs.

Is my Xanax getting in the way or is it Tim Cook?


-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Arrow Keys in NSSlider

2015-09-08 Thread Raglan T. Tiger
In a window are multiple views. One view contains an NSSlider.  I would like to 
move the slider with arrow keys.

I have subclassed NSSlider, added a -keyDown: method,and  
-acceptsFirstResponder that returns YES.

-keyDown is not being called.

What more do I need do ?



 -rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Arrow Keys in NSSlider

2015-09-08 Thread Raglan T. Tiger
Coolio, I will get on these suggestion, thx!

-rags



> On Sep 8, 2015, at 2:47 PM, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> On Sep 8, 2015, at 13:28 , Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
>> 
>> What more do I need do ?
> 
> It’s hard to say, but at the very least you’ll actually need to *make* the 
> NSSlider first responder, which means you’ll have to click it first or tab to 
> it.
> 
> You also don’t say what you think should happen if arrow keys should be 
> pressed when some other view (e.g. a text field) is first responder.
> 
> Most likely, your solution will involved the following:
> 
> — Implement ‘keyDown’ in a view or controller higher up in the responder 
> chain, an object that normally doesn’t respond to keystrokes.
> 
> — In your ‘keyDown’ override, invoke ‘interpretKeyEvents’ to handle the arrow 
> keys.
> 
> — In a suitable controller class (possibly the same one), implement 
> ‘moveUp/Down/Left/Right:’ action methods to deal with the slider.
> 
> — Filter out or reroute other events that aren’t relevant.
> 
> See the Cocoa Event Handling Guide (Handling Key Events) for more details.
> 
> 
> 
> ___
> 
> 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.com/mailman/options/cocoa-dev/koko%40highrolls.net
> 
> This email sent to k...@highrolls.net


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-09-03 Thread Raglan T. Tiger
My solution to this problem was to set the tableview delegate to nil in the 
windowwillclose for the window containing the table.

My code now runs 10.5 and upward, built with 10.9 sdk on Xcode 6.2

-rags

> On May 26, 2015, at 6:17 PM, Scott Ribe <scott_r...@elevated-dev.com> wrote:
> 
> On Apr 9, 2015, at 12:17 PM, Charles Srstka <cocoa...@charlessoft.com 
> <mailto:cocoa...@charlessoft.com>> wrote:
>> 
>>> On Apr 9, 2015, at 12:41 PM, Raglan T. Tiger <r...@crusaderrabbit.net> 
>>> wrote:
>>> 
>>> My app runs just fine on OS X version > 10.6.8.
>>> 
>>> On 10.6.8 it crashes.
>>> 
>>> The crash report indicates a bad object having called on it 
>>> tableView:objectValueForTableColumn:row:
>>> 
>>> The eax register has a value that does not match any table being used in 
>>> the app.
>>> 
>>> The call stack does not show reference to the app.
>>> 
>>> I have attempted to symbolicate this using atos but no results.
>>> 
>>> What is an appropriate methodology to determine the offending entry in the 
>>> eax register?
>>> 
>>> 
>>> Application Specific Information:
>>> objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
>>> 
>>> 
>>> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
>>> 0   libobjc.A.dylib 0x92f43f94 objc_msgSend + 36
>>> 1   com.apple.AppKit0x9179a1da -[NSTableView 
>>> preparedCellAtColumn:row:] + 335
>>> 2   com.apple.AppKit0x917b46bc -[NSTableView 
>>> _drawContentsAtRow:column:withCellFrame:] + 56
> ...
>>> 27  com.apple.AppKit0x9168c289 NSApplicationMain + 574
>>> 28  com.britonleap.Embrilliance 0x0001d938 main + 824
>>> 29  com.britonleap.Embrilliance 0x2985 start + 53
>>> ==
>> 
>> I had this same problem when I was still planning to make Pacifist 3.5 
>> compatible with 10.6.x. What I found was that if I compiled the same code 
>> with Xcode 5.x, it would work, but that Xcode 6 had some sort of problem 
>> compiling code that would work on Snow Leopard without getting that same 
>> crash in the NSTableView code. So basically your options are to downgrade to 
>> an older version of Xcode (which might mean downgrading your OS X 
>> installation as well, since I don’t know if Xcode 5 can run on Yosemite), or 
>> drop 10.6 support. My decision was to do the latter; Snow Leopard is four 
>> years old now. Time to move on.
> 
> Well now, if this isn’t totally strange. I’m starting to see this problem 
> *after* switching to Xcode 6.2 and switching my base SDK (& deployment 
> target) from 10.8 to 10.9.
> 
> Either of you ever figure out anything more about this?
> 
> -- 
> Scott Ribe
> scott_r...@elevated-dev.com <mailto:scott_r...@elevated-dev.com>
> http://www.elevated-dev.com/ <http://www.elevated-dev.com/>
> https://www.linkedin.com/in/scottribe/ 
> <https://www.linkedin.com/in/scottribe/>
> (303) 722-0567 voice
> 
> 
> 
> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
> <mailto: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 
> <http://lists.apple.com/>
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net 
> <https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net>
> 
> This email sent to k...@highrolls.net <mailto:k...@highrolls.net>
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-09-03 Thread Raglan T. Tiger
Correction set the delegate and datasource to nil.
-rags



> On May 26, 2015, at 6:23 PM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
> 
> My solution to this problem was to set the tableview delegate to nil in the 
> windowwillclose for the window containing the table.
> 
> My code now runs 10.5 and upward, built with 10.9 sdk on Xcode 6.2
> 
> -rags
> 
>> On May 26, 2015, at 6:17 PM, Scott Ribe <scott_r...@elevated-dev.com 
>> <mailto:scott_r...@elevated-dev.com>> wrote:
>> 
>> On Apr 9, 2015, at 12:17 PM, Charles Srstka <cocoa...@charlessoft.com 
>> <mailto:cocoa...@charlessoft.com>> wrote:
>>> 
>>>> On Apr 9, 2015, at 12:41 PM, Raglan T. Tiger <r...@crusaderrabbit.net 
>>>> <mailto:r...@crusaderrabbit.net>> wrote:
>>>> 
>>>> My app runs just fine on OS X version > 10.6.8.
>>>> 
>>>> On 10.6.8 it crashes.
>>>> 
>>>> The crash report indicates a bad object having called on it 
>>>> tableView:objectValueForTableColumn:row:
>>>> 
>>>> The eax register has a value that does not match any table being used in 
>>>> the app.
>>>> 
>>>> The call stack does not show reference to the app.
>>>> 
>>>> I have attempted to symbolicate this using atos but no results.
>>>> 
>>>> What is an appropriate methodology to determine the offending entry in the 
>>>> eax register?
>>>> 
>>>> 
>>>> Application Specific Information:
>>>> objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
>>>> 
>>>> 
>>>> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
>>>> 0   libobjc.A.dylib0x92f43f94 objc_msgSend + 36
>>>> 1   com.apple.AppKit   0x9179a1da -[NSTableView 
>>>> preparedCellAtColumn:row:] + 335
>>>> 2   com.apple.AppKit   0x917b46bc -[NSTableView 
>>>> _drawContentsAtRow:column:withCellFrame:] + 56
>> ...
>>>> 27  com.apple.AppKit   0x9168c289 NSApplicationMain + 574
>>>> 28  com.britonleap.Embrilliance0x0001d938 main + 824
>>>> 29  com.britonleap.Embrilliance0x2985 start + 53
>>>> ==
>>> 
>>> I had this same problem when I was still planning to make Pacifist 3.5 
>>> compatible with 10.6.x. What I found was that if I compiled the same code 
>>> with Xcode 5.x, it would work, but that Xcode 6 had some sort of problem 
>>> compiling code that would work on Snow Leopard without getting that same 
>>> crash in the NSTableView code. So basically your options are to downgrade 
>>> to an older version of Xcode (which might mean downgrading your OS X 
>>> installation as well, since I don’t know if Xcode 5 can run on Yosemite), 
>>> or drop 10.6 support. My decision was to do the latter; Snow Leopard is 
>>> four years old now. Time to move on.
>> 
>> Well now, if this isn’t totally strange. I’m starting to see this problem 
>> *after* switching to Xcode 6.2 and switching my base SDK (& deployment 
>> target) from 10.8 to 10.9.
>> 
>> Either of you ever figure out anything more about this?
>> 
>> -- 
>> Scott Ribe
>> scott_r...@elevated-dev.com <mailto:scott_r...@elevated-dev.com>
>> http://www.elevated-dev.com/ <http://www.elevated-dev.com/>
>> https://www.linkedin.com/in/scottribe/ 
>> <https://www.linkedin.com/in/scottribe/>
>> (303) 722-0567 voice
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
>> <mailto: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 
>> <http://lists.apple.com/>
>> 
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net 
>> <https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net>
>> 
>> This email sent to k...@highrolls.net <mailto:k...@highrolls.net>

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Swift NSOutlineView Illegal NSOutlineView data source

2015-07-31 Thread Raglan T. Tiger
sounds like the delegate isn't set so it don't know where to look for those or 
the delegate is set to the wrong object

-rags



 On Jul 31, 2015, at 4:17 PM, Rick Mann rm...@latencyzero.com wrote:
 
 But I still get this at run time:
 
 *** Illegal NSOutlineView data source (NSViewController: 0x608c6740).  
 Must implement outlineView:numberOfChildrenOfItem:, 
 outlineView:isItemExpandable:, outlineView:child:ofItem: and 
 outlineView:objectValueForTableColumn:byItem:

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: I am reluctant to file any more bugs until those already reported are fixed

2015-07-15 Thread Raglan T. Tiger
 On Jul 15, 2015, at 7:45 AM, Michael David Crawford mdcrawf...@gmail.com 
 wrote:
 
 I didn't realize that Apple's
 engineers hang out at Reddit.


They do not.  Nutcases do.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: I am reluctant to file any more bugs until those already reported are fixed

2015-07-15 Thread Raglan T. Tiger


 On Jul 15, 2015, at 1:18 AM, Michael David Crawford mdcrawf...@gmail.com 
 wrote:
 
 Please understand that I do not wish to get anyone in trouble.  It is
 common for heads to roll over product defects.  That is not even
 remotely my objective.


Take it to Reddit and leave us alone.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

AfxIsValidAddress

2015-07-14 Thread Raglan T. Tiger
Is there a Cocoa or OS X equivalent to the Windows function AfxIsValidAddress ?

Or, is this even a valid consideration for OS X?

-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: AfxIsValidAddress

2015-07-14 Thread Raglan T. Tiger


 On Jul 14, 2015, at 11:22 AM, Scott Ribe scott_r...@elevated-dev.com wrote:
 
 This is a definite FUGGEDABOUTIT situation.

I already have!

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Generic Bitmap to NSImage

2015-06-26 Thread Raglan T. Tiger


 On Jun 25, 2015, at 5:32 PM, Ken Thomases k...@codeweavers.com wrote:
 
 First suggestion is to cache the results so you don't have to convert every 
 time.

This is the approach I have taken in conjunction with the other comments that 
showed I was copying things twice.

I have achieved the performance desired.

Thanks all.

-rags

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Generic Bitmap to NSImage

2015-06-25 Thread Raglan T. Tiger
I have a list of generic bitmaps that are to be transformed to NSImages.  The 
list can be long, I haven limits on it.

Here is the code I use to populate an NSMenu that gets set into an 
NSPopUpButton.

I need to speed this process up ... any suggestions?

NSMenu *comboMenu = [[[NSMenu alloc] init] autorelease];
   POSITION pos = listOfBBitmaps.GetHeadPosition();
while ( pos )
{
BBitmap *image = listOfBBitmaps.GetNext ( pos );

CGColorSpaceRef colorSpace;
colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
CGContextRefcontext;
context = CGBitmapContextCreate (image-m_array, image-m_pixelsx, 
image-m_pixelsy, 8, image-m_pixelsx * 4, colorSpace, 
kCGImageAlphaNoneSkipFirst|kCGBitmapByteOrder32Host);

CGImageRef cgImage = CGBitmapContextCreateImage (context);

CGContextRelease(context);
CGColorSpaceRelease(colorSpace);

size_t width = CGImageGetWidth( cgImage );
size_t height = CGImageGetHeight( cgImage );
NSRect imageRect = NSMakeRect(0, 0, width, height);
NSImage *nsImage = [[[NSImage alloc] initWithSize:imageRect.size] 
autorelease];
  
if ( [nsImage respondsToSelector:@selector(lockFocusFlipped:)] )
{
[nsImage lockFocusFlipped:YES];
}
else
{
[nsImage setFlipped:YES];
[nsImage lockFocus];
}
CGContextRef imageContext = (CGContextRef)[[NSGraphicsContext 
currentContext] graphicsPort];
CGContextDrawImage(imageContext, *(CGRect*)imageRect, cgImage);

[nsImage unlockFocus];

NSMenuItem *menuItem = [[[NSMenuItem alloc] init] autorelease];
[menuItem setImage: nsImage];

[menuItem setTitle:[NSString stringWithFormat:@untitled]];

[comboMenu addItem:menuItem];

m_imageCount++;

}





-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

C Assert in BSD Static Library

2015-06-23 Thread Raglan T. Tiger
My cocoa app links to a number of C++ BSD Static libraries. These libraries are 
built in Release configuration.  They have Asset Macros in them.

The Asserts are fired in the release builds.  My Windows programmer tele that 
Asserts do not get compiled into release code on windows.

What are my options / setting for not compiling asserts into release builds?

Are these set in the Library project or the App project that links to them?




-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: C Assert in BSD Static Library

2015-06-23 Thread Raglan T. Tiger
 On Jun 23, 2015, at 5:48 PM, Scott Ribe scott_r...@elevated-dev.com wrote:
 
 Just to be clear, =1 is actually not necessary.


Yes.  But of course Xcode puts DEBUG=1 in the debug configuration.

Just doing belt and suspenders.

What if the compiler did 

#ifdef NDEBUG

if ( NDEBUG == 1 ) turn off stuff 

#endif

Just sayin'.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: C Assert in BSD Static Library

2015-06-23 Thread Raglan T. Tiger

-rags



 On Jun 23, 2015, at 1:59 PM, Greg Parker gpar...@apple.com wrote:
 
 
 On Jun 23, 2015, at 10:14 AM, Raglan T. Tiger r...@crusaderrabbit.net 
 wrote:
 
 My cocoa app links to a number of C++ BSD Static libraries. These libraries 
 are built in Release configuration.  They have Asset Macros in them.
 
 The Asserts are fired in the release builds.  My Windows programmer tele 
 that Asserts do not get compiled into release code on windows.
 
 What are my options / setting for not compiling asserts into release builds?
 
 First question: how are the asserts spelled? Different assert calls have 
 different configuration. For example, the switch to disable assert() has no 
 effect on NSAssert().
 
 
 Are these set in the Library project or the App project that links to them?
 
 Assert behavior is usually set when the library is compiled. Sometimes the 
 library will have a runtime variable that affects assert behavior.
 

The Asserts are in the static libraries and are C++ and writen like:

assert( 0.0 = u );

I have added NDEBUG=1 in the project release configurationpre-processor macro 
definitions per results here.

Thanks all.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Action Menu

2015-06-18 Thread Raglan T. Tiger
The HIGs says 

To create an Action menu in Interface Builder use the control that’s 
appropriate for the window area. Then, in the Attributes pane of the inspector, 
specify NSActionTemplate for the image.


What would one choose as the control if it is to be in an NSToolbar ?

I want the gear with a downward pointing V.

-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSPathControl

2015-05-28 Thread Raglan T. Tiger

 On May 27, 2015, at 4:43 PM, Lee Ann Rucker lruc...@vmware.com wrote:
 
 
 On May 27, 2015, at 2:55 PM, Jens Alfke j...@mooseyard.com wrote:
 
 
 On May 27, 2015, at 2:46 PM, Raglan T. Tiger r...@crusaderrabbit.net 
 wrote:
 
 I can setObjectValue: for the path;  now I want to know what path component 
 the users selects.  I am using Pop Up style.
 
 It’s an NSControl. Wire up the target/action to your IBAction method, either 
 in IB or programmatically.
 
 
 And then look at clickedPathComponentCell

Thanks all ... just a bit of drought induced neurological ABEND.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

NSPathControl

2015-05-27 Thread Raglan T. Tiger
How do I get called by NSPathControl ?  

I can setObjectValue: for the path;  now I want to know what path component the 
users selects.  I am using Pop Up style.


-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Subclassing NSPopUpButton

2015-05-08 Thread Raglan T. Tiger
 On May 8, 2015, at 10:55 AM, Kyle Sluder k...@ksluder.com wrote:
 
  In that case, the menu is running the runloop in event-tracking mode and 
 pulling events for its own purpose.


I create an NSMenu and populate it with NSMenuItem s and then set this menu to 
the NSPopUpButton.

Would it make sense to use a subclass of NSMenu for this menu ... i.e. would I 
get keyDown events in this subclass?


-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Subclassing NSPopUpButton

2015-05-08 Thread Raglan T. Tiger
I have subclassed NSPopUpButton.  In the subclass  drawRect:dirtyRect is called 
... I did this just to check that the subclass is properly implemented.

In the subclass keyDown:theEvent is not being called.  How does one override 
this method for an NSPopUPButton subclass?

The purpose for overriding keyDown:theEvent is to create my own search string 
to find items in the menu.



-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: time of the build

2015-04-29 Thread Raglan T. Tiger
I run this script in the Run Script of the Build Phase:

infoplist=$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH
builddate=`date`
if [[ -n $builddate ]]; then
defaults write ${infoplist%.plist} BuildDate ${builddate}
fi




-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Window Size and Location

2015-04-24 Thread Raglan T. Tiger

 On Apr 24, 2015, at 11:36 AM, Lee Ann Rucker lruc...@vmware.com wrote:
 
 ~/Library/Saved Application State

Can the application delete its .savedState file without any grumbling from OS X?

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Window Size and Location

2015-04-24 Thread Raglan T. Tiger
Where are widow sizes and locations stored other than the app defaults ?  There 
must be some cache managed by OS X.

-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-04-13 Thread Raglan T. Tiger
Just a quick follow-up and thanks to those that put me on the right path.

I ran the code in GDB on a 10.6.8 machine and set NSZombieEnabled=YES.  This 
showed me the object that was released that Cocoa was calling 
tableView:objectValueForTableColumn:row: on after release.  This was only a 
problem on 10.6.8 machines.

The solution was to set the datasource and delegate to nil on the table before 
exiting the stack that started the process.

This does seem to be a bug when building with Xcode 6.2 and 10.9 SDK.

-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-04-09 Thread Raglan T. Tiger

-rags



 On Apr 9, 2015, at 12:22 PM, Jens Alfke j...@mooseyard.com wrote:
 
 Use NSZombieEnabled

Isn't this for use within Xcode?  I am running the app on a 10.6.8 machine , 
not from Xcode on that machine.

-rags

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-04-09 Thread Raglan T. Tiger
My app runs just fine on OS X version  10.6.8.

On 10.6.8 it crashes.

The crash report indicates a bad object having called on it 
tableView:objectValueForTableColumn:row:

The eax register has a value that does not match any table being used in the 
app.

The call stack does not show reference to the app.

I have attempted to symbolicate this using atos but no results.

What is an appropriate methodology to determine the offending entry in the eax 
register?


Application Specific Information:
objc_msgSend() selector name: tableView:objectValueForTableColumn:row:


Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib 0x92f43f94 objc_msgSend + 36
1   com.apple.AppKit0x9179a1da -[NSTableView 
preparedCellAtColumn:row:] + 335
2   com.apple.AppKit0x917b46bc -[NSTableView 
_drawContentsAtRow:column:withCellFrame:] + 56
3   com.apple.AppKit0x917b372a -[NSTableView 
drawRow:clipRect:] + 1131
4   com.apple.AppKit0x917b3162 -[NSTableView 
drawRowIndexes:clipRect:] + 360
5   com.apple.AppKit0x917b1b3b -[NSTableView drawRect:] + 
1144
6   com.apple.AppKit0x917a76f1 -[NSView _drawRect:clip:] + 
3721
7   com.apple.AppKit0x917a4dbd -[NSView 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 + 2217
8   com.apple.AppKit0x917a5750 -[NSView 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 + 4668
9   com.apple.AppKit0x917a5750 -[NSView 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 + 4668
10  com.apple.AppKit0x917a5750 -[NSView 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 + 4668
11  com.apple.AppKit0x917a5750 -[NSView 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 + 4668
12  com.apple.AppKit0x917a434f -[NSThemeFrame 
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
 + 265
13  com.apple.AppKit0x917a0c96 -[NSView 
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309
14  com.apple.AppKit0x9170184b -[NSView displayIfNeeded] + 
818
15  com.apple.AppKit0x916cab64 -[NSWindow displayIfNeeded] 
+ 204
16  com.apple.AppKit0x916fc07e _handleWindowNeedsDisplay + 
696
17  com.apple.Foundation0x991ef484 __NSFireTimer + 141
18  com.apple.CoreFoundation0x98832a3b __CFRunLoopRun + 8059
19  com.apple.CoreFoundation0x988303c4 CFRunLoopRunSpecific + 452
20  com.apple.CoreFoundation0x988301f1 CFRunLoopRunInMode + 97
21  com.apple.HIToolbox 0x98e56e04 RunCurrentEventLoopInMode + 
392
22  com.apple.HIToolbox 0x98e56af5 ReceiveNextEventCommon + 158
23  com.apple.HIToolbox 0x98e56a3e 
BlockUntilNextEventMatchingListInMode + 81
24  com.apple.AppKit0x916d2595 _DPSNextEvent + 847
25  com.apple.AppKit0x916d1dd6 -[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
26  com.apple.AppKit0x916941f3 -[NSApplication run] + 821
27  com.apple.AppKit0x9168c289 NSApplicationMain + 574
28  com.britonleap.Embrilliance 0x0001d938 main + 824
29  com.britonleap.Embrilliance 0x2985 start + 53
==






-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger

 On Feb 20, 2015, at 12:51 PM, Keary Suska cocoa-...@esoteritech.com wrote:
 
 Does [NSApp mainWindow] return a non-nil value at the point the code is 
 invoked?


 On Feb 20, 2015, at 12:57 PM, Steve Mills sjmi...@mac.com wrote:
 
 Or is it pointing to the same window that you're trying to make a sheet?


2015-02-20 13:17:57.666 [5613:177188] aboutWindowController 
ETAboutWindowController: 0x600e4600
2015-02-20 13:17:57.666 [5613:177188] aboutWindowController window NSWindow: 
0x601e9500
2015-02-20 13:17:57.666 [5613:177188] mainWindow window NSWindow: 
0x601e9500

You can see that as Steve asked the main window and sheet window are the same.

So, I added an outlet of the app window and get:

2015-02-20 13:28:21.563 [5792:181060] aboutWindowController 
ETAboutWindowController: 0x610e1b00
2015-02-20 13:28:21.563 [5792:181060] aboutWindowController window NSWindow: 
0x6180001edb00
2015-02-20 13:28:21.563 [5792:181060] appWindow NSWindow: 0x6080001e0400

Which on its face looks good ... but the sheet still displays as a window with 
no title and does not slide down from the app window.

ETAboutWindowController *aboutWindowController = [[ETAboutWindowController 
alloc] initWithWindowNibName:@ETAboutWindowController];
NSWindow *aboutWindow = [aboutWindowController window];

NSLog(@aboutWindowController %@,aboutWindowController);
NSLog(@aboutWindowController window %@,aboutWindow);
NSLog(@appWindow %@,m_window);

[NSApp beginSheet:aboutWindow modalForWindow:m_window modalDelegate:nil 
didEndSelector:nil contextInfo:nil];

This just seems too ridiculous for something that has been around forever and 
that I have successfully implemented in the past.

-rags


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger




 On Feb 20, 2015, at 2:09 PM, Ken Thomases k...@codeweavers.com wrote:
 
 Are you sure the app window (m_window) is the window you think it is?  Log 
 its title and its visible property.



NSWindow *appWindow = [NSApp mainWindow];

ETAboutWindowController *aboutWindowController = [[ETAboutWindowController 
alloc] initWithWindowNibName:@ETAboutWindowController];
NSWindow *aboutWindow = [aboutWindowController window];

NSLog(@aboutWindowController  %@,aboutWindowController);
NSLog(@   window  %@,aboutWindow);
   
NSLog(@appWindow from outlet  %@,m_window);
NSLog(@title  %@,[m_window title]);
NSLog(@   visibility  %i,[m_window isVisible]);
   
NSLog(@appWindow from call%@,appWindow);
NSLog(@  title%@,[appWindow title]);
NSLog(@ visibility%i,[appWindow isVisible]);

[NSApp beginSheet:aboutWindow modalForWindow:m_window modalDelegate:nil 
didEndSelector:nil contextInfo:nil];


2015-02-20 14:39:15.134 [6232:204577] aboutWindowController  
ETAboutWindowController: 0x610e3c00
2015-02-20 14:39:15.134 [6232:204577]window  NSWindow: 
0x601e3100

2015-02-20 14:39:15.134 [6232:204577] appWindow from outlet  NSWindow: 
0x611e2100
2015-02-20 14:39:15.135 [6232:204577] title  App Window Title
2015-02-20 14:39:15.135 [6232:204577]visibility  1

2015-02-20 14:39:15.135 [6232:204577] appWindow from callNSWindow: 
0x611e2100
2015-02-20 14:39:15.135 [6232:204577]   titleApp Window Title
2015-02-20 14:39:15.135 [6232:204577]  visibility1




-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger

 On Feb 20, 2015, at 12:09 PM, Kyle Sluder k...@ksluder.com wrote:
 
 Inspect the Display At Launch checkbox for the window in the nib. 

Under Behavior , Visible at Launch is not selected.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

-beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger
My App has one window which is displayed.  I want to display a sheet when a 
button is clicked.

In the action for the button click I do:

ETAboutWindowController *windowController = [[ETAboutWindowController 
alloc] initWithWindowNibName:@ETAboutWindowController];
   [NSApp beginSheet:[windowController window] modalForWindow:[NSApp 
mainWindow] modalDelegate:nil didEndSelector:nil contextInfo:nil];

The sheet displays like a modal window with no title bar rather than sliding 
down from the main widow as I expect and the spinning beach ball appears.

What is my mistake here?




-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger

 On Feb 20, 2015, at 12:27 PM, Steve Mills sjmi...@mac.com wrote:
 
 Also ensure that the Title Bar attribute is turned on.

Under Appearance Title Bar and Shadow are selected.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSWindowControllers and NSWindow

2015-02-16 Thread Raglan T. Tiger

 On Feb 16, 2015, at 2:38 PM, Jens Alfke j...@mooseyard.com wrote:
 
 I’m surprised by how complicated the discussion is making this seem! 

Me too !

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Convert to NSString from

2015-02-06 Thread Raglan T. Tiger
I have read that the recommended string encoding to use when converting strings 
from CString and Str to NSString is NSUTF8StringEncoding.

However, in too many cases this returns nil.  I have found that using 
NSMacOSRomanStringEncoding always returns an NSString.

What is the 'best practice' for converting to NSString?

-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

-windowdidLoad

2015-02-05 Thread Raglan T. Tiger
What does [super windowDidLoad} accomplish in the subclass implementation of 
-windowDidLoad and is it necessary?

-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

[no subject]

2015-01-30 Thread Raglan T. Tiger
One last thing ...


Exception Type:EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:   KERN_INVALID_ADDRESS at 0x0020

VM Regions Near 0x20:
-- 
__TEXT 00010ca2d000-00010ca2e000 [4K] r-x/rwx 
SM=COW  
/System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent

Application Specific Information:
Bundle controller class:
BrowserBundleController
 
Process Model:
Multiple Web Processes
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore   0x00010daf0ae1 
WebCore::TextIterator::range() const + 49
1   com.apple.WebCore   0x00010daf09a0 
WebCore::CharacterIterator::range() const + 32
2   com.apple.WebCore   0x00010db2cf90 
WebCore::characterSubrange(WebCore::CharacterIterator, int, int) + 48
3   com.apple.WebCore   0x00010db2cf36 
WebCore::TextIterator::subrange(WebCore::Range*, int, int) + 134
4   com.apple.WebCore   0x00010dc1dd10 
WebCore::AlternativeTextController::applyAlternativeTextToRange(WebCore::Range 
const*, WTF::String const, WebCore::AlternativeTextType, 
WTF::VectorWebCore::DocumentMarker::MarkerType, 0ul, WTF::CrashOnOverflow 
const) + 1648


-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Program Crash

2015-01-30 Thread Raglan T. Tiger

 On Jan 30, 2015, at 9:04 AM, Ronald Hofmann pro...@jumbosoft.de wrote:
 
  I asume you are using some extensions or/and Flash which are resposinble for 
 that.

I know this sis off topic but it is just frustrating and I choose to vent.

No flash, no extensions.

Enough, no more comments.

-rags


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Program Crash

2015-01-30 Thread Raglan T. Tiger
If my products crashed 50 times a day like Safari I would be out of business.

Apple records record profits and puts out a piece of shite application, Safari.


-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: iOS 6.x vs iOS 8.x layout

2015-01-26 Thread Raglan T. Tiger

 On Jan 26, 2015, at 11:34 AM, David Duncan david.dun...@apple.com wrote:
 
 Do you mean your app, without being rebuilt, is laying out incorrectly


Yes.

I had a popover for sharing which displayed below the toolbar and on iOS 8 it 
wants to display above the toolbar and is therefore not visible.

The other issues were on recompile trying to correct the above.

I'll do the bug thing.

Thanks.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

iOS 6.x vs iOS 8.x layout

2015-01-26 Thread Raglan T. Tiger
I did a free iOS app for the iPad which ran just fine on iOS 6.

Now for users who have updated to iOS 8 the view layout is incomprehensible ... 
toolbars do not show, and  popovers are positioned wrong.

Why would this happen and what recourse do I have? (I guess learn about 
constrains?).

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSThread

2015-01-13 Thread Raglan T. Tiger
I am using all this good advice to attempt to unwrap myself and the axle.

I shall return.

-rags



 On Jan 13, 2015, at 2:09 PM, Corbin Dunn corb...@apple.com wrote:
 
 
 On Jan 13, 2015, at 9:57 AM, Mike Abdullah mabdul...@karelia.com wrote:
 
 
 On 13 Jan 2015, at 16:18, Mike Abdullah mabdul...@karelia.com wrote:
 
 
 On 13 Jan 2015, at 16:07, Raglan T. Tiger r...@crusaderrabbit.net wrote:
 
 I allocate and init an NSThread as follows:
 
 if ( m_mythread ) [m_mythread cancel];
 m_mythread = [[MYThread alloc] initWithTarget:m_mythread 
 selector:@selector(start) object:m_anobject];
 [m_mythread start];
 
 Looking closer, I have to wonder what you think this code will do. You seem 
 to be trying to create a thread that will message *itself* to do its work.
 
 Not only that, but I bet it infinite loops restarting itself. 
 
 1. Use init, not initWithTarget.
 2. Override -main to do your threaded work.
 
 corbin
 
 
 At the time this code is executed, m_mythread will either be nil, or will 
 point to an older thread instance that you’re about to supersede.
 
 I think you need to take a step back and evaluate your app design. What are 
 you actually trying to accomplish here? Would using NSOperationQueue or GCD 
 better suit your needs?
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
 mailto: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 
 http://lists.apple.com/
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/corbind%40apple.com 
 https://lists.apple.com/mailman/options/cocoa-dev/corbind%40apple.com
 
 This email sent to corb...@apple.com mailto:corb...@apple.com
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
 mailto: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 
 http://lists.apple.com/
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net 
 https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net
 
 This email sent to k...@highrolls.net mailto:k...@highrolls.net
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSThread

2015-01-13 Thread Raglan T. Tiger
 On Jan 13, 2015, at 9:18 AM, Mike Abdullah mabdul...@karelia.com wrote:
 
  Step 1 of diagnosis: take a sample.

How would that be accomplished ?


-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

NSThread

2015-01-13 Thread Raglan T. Tiger
I allocate and init an NSThread as follows:

if ( m_mythread ) [m_mythread cancel];
m_mythread = [[MYThread alloc] initWithTarget:m_mythread 
selector:@selector(start) object:m_anobject];
[m_mythread start];



I set a break in -start and see that this is a separate thread in my process 
... so far so good.

But, my UI becomes unresponsive.

I understand that the main thread handles the UI so why would it become 
unresponsive?

The overall behavior is as if the head code was executing in the main thread.

Can some light be shed on this?

I just did 

[m_bfilenameListFromPath setThreadPriority:0.5];

before 

[m_mythread start];

with the same result :  unresponsive UI, wait cursor (beach ball) is displayed.


-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Beep ( frequency, duration)

2014-12-28 Thread Raglan T. Tiger
Is it possible with Cocoa to generate a tone of a specified frequency and 
duration to play synchronously?


-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CGDisplayCreateImageForRect

2014-12-03 Thread Raglan T. Tiger

-rags



 On Dec 3, 2014, at 12:34 AM, Kyle Sluder k...@ksluder.com wrote:
 
 Check out the Son of Grab sample:


Thanks for the tip ... what I am doing is trying to get the color of a pixel, 
current code works just fine but uses the above mentioned function which is not 
in 10.5 our minimum deployment target.


-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CGDisplayCreateImageForRect

2014-12-03 Thread Raglan T. Tiger
 On Dec 3, 2014, at 9:40 AM, Kyle Sluder k...@ksluder.com wrote:
 
 In that case, can you just use NSReadPixel?

I was using NSReadPixel at one time but was getting bad results with multiple 
monitors.  Since then I had made code changes to convert points etc and now 
switching back to NSReadPixel I get proper results.

Must be Alzheimer's kicking in that I forgot about the prior use of NSReadPixel!

Thanks all !

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Deployment Target

2014-12-03 Thread Raglan T. Tiger

-rags



 On Dec 1, 2014, at 12:06 PM, Quincey Morris 
 quinceymor...@rivergatesoftware.com wrote:
 
 — Use a third-party tool such as Deploymate.


What a great tool!

Purchased it last night and easily identified 6 APIs in two projects that were 
not supported on 10.5.

Thanks all!

- rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

CGDisplayCreateImageForRect

2014-12-02 Thread Raglan T. Tiger

I have searched to naval to find what to use in place of 
CGDisplayCreateImageForRect for deployment on 10.5 building with 109 sdks.

Any help here?

-rags


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Deployment Target

2014-12-01 Thread Raglan T. Tiger
I set my deployment target to be 10.5.

I see no warnings about using APIs not supported in 10.5.

My program crashes on 10.5.8 ... I do not haveth report from the customer as 
yet.

Is there an efficient way to isolate APIs not supported ?


-rags




___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Deployment Target

2014-12-01 Thread Raglan T. Tiger

 On Dec 1, 2014, at 12:16 PM, Milen Dzhumerov s...@milen.me wrote:
 
 you don’t actually need to run the old Xcode, you only need the SDK itself

Ok, this seems like the easiest approach.  Thanks.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Trouble with imported enums in Swift

2014-10-21 Thread Raglan T. Tiger



 On Oct 20, 2014, at 10:53 PM, Rick Mann rm...@latencyzero.com wrote:
 
 Sigh, I figured it out. Not only do you have to use NS_ENUM, the enumeration 
 members MUST begin with the name of the enumeration.


Example please ... I feel unfulfilled.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Kerning Pairs

2014-10-12 Thread Raglan T. Tiger


On Oct 11, 2014, at 12:47 PM, Scott Ribe scott_r...@elevated-dev.com wrote:

 So Kyle's question is: what are you trying to accomplish with that table?


We have model code that handles the kerning and it is currently being driven by 
a Windows view and controller and gives the results we need.

My task is to make the Mac view and controller to capture the selected font. 
The rendering of the font is all good. So now I just need kerning data that I 
can put into a KERNINGPAIR structure and my task is complete. 

I have read the reference from Kyle that describes the 'kerx' extended kerning 
table which is supported on OS X 10.7 and iOS 7 onward. Our deployment is 10.5 
and greater.

I suspect that the 'kern' table will give what I need. 

How does one get a pointer to a 'kern' table for a specified font?

-rags

typedef struct tagKERNINGPAIR {
WORD wFirst;
WORD wSecond;
int  iKernAmount;
} KERNINGPAIR, *LPKERNINGPAIR;

wFirst
The character code for the first character in the kerning pair.
wSecond
The character code for the second character in the kerning pair.
iKernAmount
The amount this pair will be kerned if they appear side by side in the same 
font and size. This value is typically negative, because pair kerning usually 
results in two characters being set more tightly than normal. The value is 
specified in logical units; that is, it depends on the current mapping mode.


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Kerning Pairs

2014-10-12 Thread Raglan T. Tiger


On Oct 12, 2014, at 9:31 AM, Kyle Sluder k...@ksluder.com wrote:

 It sounds like you're trying rrreay hard to avoid admitting to
 yourself that your model code needs to be rewritten.

I don't think so as our model code works just fine when driven from Windows V-C 
that get a font, gets it its outline and mer table and call the model.  
Beautiful output.

There is a 'kern' table andI am trying to find out how to get a pointer to it 
for a given font. 

Is it possible to get the 'kern' table if it exists?

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Kerning Pairs

2014-10-11 Thread Raglan T. Tiger
The Windows CDC class has a function:

 DWORD GetKerningPairs( DWORD nNumPairs, LPKERNINGPAIR lpkrnpair );


What would be the equivalent in a Cocoa class?  I cannot find any methods that 
have kerning in their name.




-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Kerning Pairs

2014-10-11 Thread Raglan T. Tiger
On Oct 11, 2014, at 10:16 AM, Kyle Sluder k...@ksluder.com wrote:

 So the question, as usual, becomes: what are you actually trying to do?


For the selected font I want to find the number of kerning pairs kpcnt, make a 
new KERNINGPAIR [ kpcnt ] structure and then fill it out.

The  kpcnt and KERNINGPAIR are passed to model code for kerning the glyphs into 
our model.





-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Raglan T. Tiger
On Sep 16, 2014, at 5:50 PM, Alex Zavatone z...@mac.com wrote:

 All I want is to turn off that distracting NSOutline expand/collapse 
 animation all the time, everywhere.  So useless and certainly distracting. 
 Certainly doesn't make my UI any faster or enhance my user experience.
 
 If anyone knows how, I'll gladly mail them 50 bucks.


Android? 

Send the 50 to my PayPal account.  

Thanks!

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger

 So the question I have is: what are you actually trying to do?

Generally speaking, display the NSFontPanel with an accessory view containing a 
NSTextField, OK and Cancel buttons.

The user picks a font, types a phrase and clicks OK.

I now take the phrase and get the glyphs for each character in the phrase.

Glyhs are gotten by name.

So I need some mechanism to take the entered character, get its name and 
retrieve the glyph.

The resulting glyphs go into our model for further processing.

Note:  this is not a text process.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger

On Aug 23, 2014, at 10:26 AM, Raglan T. Tiger r...@crusaderrabbit.net wrote:

 So I need some mechanism to take the entered character, get its name and 
 retrieve the glyph.

If NSFont had a get by unicode … problem solved.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger

On Aug 23, 2014, at 3:30 PM, Kyle Sluder k...@ksluder.com wrote:

 So the user types abcdef into your field and hits OK; you dismiss the
 font panel and try to get the glyphs for a, b, c, d, e, and
 f?

short of dismissing the font panel, yeah

already have code that processes all the paths in a glyph and puts them 
together, holes, holes in holes , etc. in our model bezier class

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger

-rags



On Aug 23, 2014, at 3:30 PM, Kyle Sluder k...@ksluder.com wrote:

 So the user types abcdef into 

no, more like “Zoe’s First Birthday

- rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger

On Aug 23, 2014, at 5:43 PM, Kyle Sluder k...@ksluder.com wrote:

 So what if Zöe’s name has an umlaut? As the documentation describes, that can 
 result in two separate glyphs.
 

apparently -glyphWithName: returns all the paths required to make the unicode 
character

at this link you will see Zöe  interpreted from the NSBezierPaths returned by 
-glyphWithName:  and put into bezier our model

http://crusaderrabbit.net/zoe.png

this is what we want but again to the original question how to get glyphs 
unicode so we don’t have to know the names

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 6:49 PM, Raglan T. Tiger r...@crusaderrabbit.net wrote:

 this is what we want but again to the original question how to get glyphs 
 unicode so we don’t have to know the names


I will look into the NSLayoutManager suggestions as they have appeared in otter 
searches
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 7:29 PM, Roland King r...@rols.org wrote:

 CoreText


going there now to see what it yields


-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

-glyphWithName:

2014-08-22 Thread Raglan T. Tiger


NSFont *font = [NSFont systemFontOfSize:288];
NSGlyph glyph = [font glyphWithName:glyphName];


if glyphName is @“A” for example I get A

if the glyphName is @“” I get nothing

if the glyphName is @“ampersand” I get 

I cannot find a list that tells me the names of these non-alphabet characters.

Where should I look for this list and will the names be the same regardless of 
font?

-rags



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

NSWindowController

2014-08-15 Thread Raglan T. Tiger

I subclass NSWindowController.

___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: True Type Fonts

2014-08-10 Thread Raglan T. Tiger

On Aug 10, 2014, at 2:14 PM, Fritz Anderson fri...@manoverboard.org wrote:

 And I’d be surprised if your digitizer didn’t adjust the outlines to fit the 
 unique medium of embroidery, making its output a derivative work.

Interesting point, I will broach this topic with management.

BTW, the technical solutions proffered were spot on and I have NSBezier paths 
to put into our bezier model.

-rags
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: True Type Fonts

2014-08-10 Thread Raglan T. Tiger
 but my reading is that for a customer of your app to extract the outlines and 
 send them as part of a vector file to some sort of printer (like an 
 embroidery machine or a laser-cutter) is fine. But for your app itself to 
 include copies of font outlines would not be OK.


This is more in keeping with what we will do … customer  will pick a font from 
THEIR system and we will render it to embroidery.

-rags


___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

  1   2   >