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 an

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 f

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

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

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

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 =

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 li

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 &list) { if ( ! &list ) return; } never returns when apointlis &list = 0x as sh

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

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 cust

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 wrote: > > > How can one find the variable containing the KERN_INVALID_ADDRESS s indicated > by > > Exception Codes: KERN_INVALID_ADDRESS

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 po

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

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 th

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

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) Plea

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 __

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger
> On Nov 11, 2015, at 3:58 PM, Graham Cox wrote: > > If it’s not working, you might have done something elsewhere that is > preventing it working as it should. without going into reasons why I was returning nil in objectValueForTableColumn returning a value from my dataSource makes it work

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 cell

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 (Co

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 maili

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

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 t

Re: CGContextShowTextAtPoint

2015-10-14 Thread Raglan T. Tiger
> On Oct 13, 2015, at 4:42 PM, Wim Lewis wrote: > > > On Oct 13, 2015, at 3:02 PM, Raglan T. Tiger wrote: >> CGContextShowTextAtPoint (ctx, pt.x,pt.y,(const char*)txt, len ); >> >> This has printed my text UNTIL 10.11. >> >> I see that CGContextSh

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 ‘s

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 draw

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);

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 __

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 mo

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];

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 ___

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 (Coco

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

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, > incl

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.a

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 pos

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 > wrote: > > On Sep 8, 2015, at 13:28 , Raglan T. Tiger wrote: >> >> What more do I need do ? > > It’s hard to say, but at the very least you’ll actually need t

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 __

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

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

2015-09-03 Thread Raglan T. Tiger
, Charles Srstka <mailto:cocoa...@charlessoft.com>> wrote: >> >>> On Apr 9, 2015, at 12:41 PM, Raglan T. Tiger >>> wrote: >>> >>> My app runs just fine on OS X version > 10.6.8. >>> >>> On 10.6.8

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 wrote: > > But I still get this at run time: > > *** Illegal NSOutlineView data source (). > Must implement outlineView:num

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

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

Re: AfxIsValidAddress

2015-07-14 Thread Raglan T. Tiger
> On Jul 14, 2015, at 11:22 AM, Scott Ribe 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. Con

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

Re: Generic Bitmap to NSImage

2015-06-26 Thread Raglan T. Tiger
> On Jun 25, 2015, at 5:32 PM, Ken Thomases 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

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]

Re: C Assert in BSD Static Library

2015-06-23 Thread Raglan T. Tiger
> On Jun 23, 2015, at 5:48 PM, Scott Ribe 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 ) #endif Just sayin'. -rags __

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 wrote: > > >> On Jun 23, 2015, at 10:14 AM, Raglan T. Tiger >> wrote: >> >> My cocoa app links to a number of C++ BSD Static libraries. These libraries >> are built in Release configuration. The

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 op

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 wit

Re: NSPathControl

2015-05-28 Thread Raglan T. Tiger
> On May 27, 2015, at 4:43 PM, Lee Ann Rucker wrote: > > > On May 27, 2015, at 2:55 PM, Jens Alfke wrote: > >> >>> On May 27, 2015, at 2:46 PM, Raglan T. Tiger >>> wrote: >>> >>> I can setObjectValue: for the path; now I want

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 adm

Re: Subclassing NSPopUpButton

2015-05-08 Thread Raglan T. Tiger
> On May 8, 2015, at 10:55 AM, Kyle Sluder 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

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 overrid

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 l

Re: Window Size and Location

2015-04-24 Thread Raglan T. Tiger
> On Apr 24, 2015, at 11:36 AM, Lee Ann Rucker 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

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. C

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 proble

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

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 t

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger
> On Feb 20, 2015, at 2:09 PM, Ken Thomases 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 = [[ETAboutWindow

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger
> On Feb 20, 2015, at 12:51 PM, Keary Suska 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 wrote: > > Or is it pointing to the same window that you're trying to make a sheet? 2015-02-20 13:17:57.666

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger
> On Feb 20, 2015, at 12:27 PM, Steve Mills 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 ad

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Raglan T. Tiger
> On Feb 20, 2015, at 12:09 PM, Kyle Sluder 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

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

Re: NSWindowControllers and NSWindow

2015-02-16 Thread Raglan T. Tiger
> On Feb 16, 2015, at 2:38 PM, Jens Alfke 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

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

-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. Cont

[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.f

Re: Program Crash

2015-01-30 Thread Raglan T. Tiger
> On Jan 30, 2015, at 9:04 AM, Ronald Hofmann 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 __

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 re

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

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

Re: NSThread

2015-01-13 Thread Raglan T. Tiger
dullah wrote: >>> >>> >>>> On 13 Jan 2015, at 16:07, Raglan T. Tiger wrote: >>>> >>>> I allocate and init an NSThread as follows: >>>> >>>> if ( m_mythread ) [m_mythread cancel]; >>>> m_myth

Re: NSThread

2015-01-13 Thread Raglan T. Tiger
> On Jan 13, 2015, at 9:18 AM, Mike Abdullah 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

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 i

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 th

Re: Deployment Target

2014-12-03 Thread Raglan T. Tiger
-rags > On Dec 1, 2014, at 12:06 PM, Quincey Morris > 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

Re: CGDisplayCreateImageForRect

2014-12-03 Thread Raglan T. Tiger
> On Dec 3, 2014, at 9:40 AM, Kyle Sluder 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

Re: CGDisplayCreateImageForRect

2014-12-03 Thread Raglan T. Tiger
-rags > On Dec 3, 2014, at 12:34 AM, Kyle Sluder 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

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 mo

Re: Deployment Target

2014-12-01 Thread Raglan T. Tiger
> On Dec 1, 2014, at 12:16 PM, Milen Dzhumerov 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) Ple

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 __

Re: Trouble with imported enums in Swift

2014-10-21 Thread Raglan T. Tiger
> On Oct 20, 2014, at 10:53 PM, Rick Mann 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 m

Re: Kerning Pairs

2014-10-12 Thread Raglan T. Tiger
On Oct 12, 2014, at 9:31 AM, Kyle Sluder 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

Re: Kerning Pairs

2014-10-12 Thread Raglan T. Tiger
On Oct 11, 2014, at 12:47 PM, Scott Ribe 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

Re: Kerning Pairs

2014-10-11 Thread Raglan T. Tiger
On Oct 11, 2014, at 10:16 AM, Kyle Sluder 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 pa

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 li

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Raglan T. Tiger
On Sep 16, 2014, at 5:50 PM, Alex Zavatone 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

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 7:29 PM, Roland King 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 moderato

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 6:49 PM, Raglan T. Tiger 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 se

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 5:43 PM, Kyle Sluder 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 interpret

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
-rags On Aug 23, 2014, at 3:30 PM, Kyle Sluder 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 t

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 3:30 PM, Kyle Sluder 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

Re: -glyphWithName:

2014-08-23 Thread Raglan T. Tiger
On Aug 23, 2014, at 10:26 AM, Raglan T. Tiger 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 (Coc

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

-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

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 Subs

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 k

  1   2   >