Re: NSTextView tab stop count

2016-10-15 Thread tridiak
Ok. Your code works. I think the reason I couldn’t get it to work is when I was using [textView insertText:mas], causing my settings to be overridden. Thanks for help. > On 15/10/2016, at 12:22 PM, Shane Stanley <sstan...@myriad-com.com.au> wrote: > > On 15 Oct. 2016, at 12:43 am

NSTextView tab stop count

2016-10-14 Thread tridiak
Why can’t I use more than 12 tab stops in NSTextView (enclosed by a standard NSScrollView)? I can use less, but I need significantly more. Is it to do with the ruler? NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init]; NSMutableArray* ma=[NSMutableArray array]; for (int t=0;

Re: mutable attributed string - underline clearing bold

2016-09-24 Thread tridiak
Ignore the noise. Just clicked : Use addattribute:… message. Doh! Programming early in the morning is bad. > On 25/09/2016, at 1:57 AM, tridiak <trid...@ihug.co.nz> wrote: > > I have a mutable attributed string where a range is set to bold. > textFont is valid. > > NS

mutable attributed string - underline clearing bold

2016-09-24 Thread tridiak
I have a mutable attributed string where a range is set to bold. textFont is valid. NSFont* bFont=[fontManager fontWithFamily:textFont.familyName traits:NSBoldFontMask weight:0 size:textFont.pointSize]; [mas setAttributes:@{NSFontAttributeName:bFont} range:rge]; This works. When a set the

WWDC 2016 direct download

2016-06-27 Thread tridiak
Where do you download the 2016 WWDC videos directly? Or is that not possible (why)? I want to watch them on my iPod touch while on work breaks. TIA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: unicode fraction symbol in a NSTextView

2016-06-22 Thread tridiak
iginal email), so I will drop my hand created version and use that. I don’t deal with HTML much (besides basic websites) and completely forgot about the encoding. Thanks for all the help. > >> On Jun 22, 2016, at 9:32 AM, tridiak <trid...@ihug.co.nz> wrote: >> >>

unicode fraction symbol in a NSTextView

2016-06-22 Thread tridiak
I am setting some text to a NSTextView which includes the ‘½’ character. s = name + “ CR " switch (CR) { case 0.5: s=s+”½” // \u{00bd} case 0.33: s=s+"⅓" case 0.25: s=s+"¼" case 0.2: s=s+"⅕"

NSViewController view not showing in NScrollView

2015-08-16 Thread tridiak
Hello. I have a window controlled by a NSWindowController subclass with a standard nsscrollview. (Outlets are connected). I load a custom view via a NSViewController subclass. (view outlet is connected). The custom view is not visible. @implementation AppDelegate - (IBAction)

NSUserDirectory returns nil

2014-09-25 Thread tridiak
Why does [[NSFileManager defaultManager] URLForDirectory:NSUserDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil] return nil? [[NSFileManager defaultManager] URLsForDirectory:NSUserDirectory inDomains:NSUserDomainMask] returns an empty array. I am aware of

Text messages

2013-11-22 Thread tridiak
Is there anyway of sending text messages from OS X iOS programmatically? A google search has indicated no without setting up your own SMS server. I was wondering if anyone has had experience with us. TIA ___ Cocoa-dev mailing list

Re: modal window and quit menu item

2013-10-19 Thread tridiak
I created a simple project that uses a modal window. The quit execution works are stated in the docs even though the window is modal. Which means I am doing something wrong. More investigating to do. On 19/10/2013, at 3:01 PM, Ken Thomases wrote: On Oct 18, 2013, at 6:35 PM,

modal window and quit menu item

2013-10-18 Thread tridiak
I have done a net search concerning the problem and I have found discussions on it, but no solution. Problem : quit menu stays active when a window is presented using [NSApp runModal:window]. Quitting causes the menu item to be permanently disabled. [window

Crash in CFPreferencesSetAppValue

2013-05-24 Thread tridiak
Sorry about noise. Just realised CFPreferences doesn't like NSURL/CFURL. ___ 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

Crash in CFPreferencesSetAppValue

2013-05-23 Thread tridiak
Sorry about cutoff. Don't know what happened. Let's try again (is there a maximum message size?). Hello. This piece of code causes CFPreferencesSetAppValue() to crash: - (CFDictionaryRef) createBlockSaveData { CFDictionaryRef parent=[super createBlockSaveData]; CFStringRef

Crash in CFPreferencesSetAppValue

2013-05-22 Thread tridiak
Hello. This piece of code causes CFPreferencesSetAppValue() to crash: - (CFDictionaryRef) createBlockSaveData { CFDictionaryRef parent=[super createBlockSaveData]; CFStringRef keys[]={CFSTR(LinkBlockURL), CFSTR(LinkBlockDisplayName), CFSTR(LinkBlockBrowser), CFSTR(BlockType), nil};

Copy problem

2012-12-18 Thread tridiak
Have a problem with a copying error. This occurs on 10.8, not 10.7. This is for a custom installer. Basically copies a plugin (for DirTree) to a user-defined (or default) location. (gdb) po plugFile file://localhost/Users/tridiak/DTPlugInstaller.app/Contents/Resources/BunchOfFilters.bundle/ (gdb

FS item in trash

2012-10-01 Thread tridiak
Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do not have anything. Or do I just do a path search looking for .trash? TIA Mark ___ Cocoa-dev mailing list

Re: FS item in trash

2012-10-01 Thread tridiak
On 2/10/2012, at 10:44 AM, Charles Srstka wrote: On Oct 1, 2012, at 3:29 PM, Ken Thomases k...@codeweavers.com wrote: On Oct 1, 2012, at 2:49 PM, tridiak wrote: Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do

Modal window and app Quit

2012-08-23 Thread tridiak
I have a simple document app-wide modal window shown using [NSApp showModal:]. It works all fine and dandy. Problem is, if Cmd-Q is initiated, it does a highlight of the Application menu, makes a beep and the Quit menu item becomes permanently disabled after the modal window has been dismissed.

Re: Modal window and app Quit

2012-08-23 Thread tridiak
On 24/08/2012, at 6:34 AM, Jens Alfke wrote: On Aug 23, 2012, at 10:52 AM, tridiak trid...@ihug.co.nz wrote: I have a simple document app-wide modal window shown using [NSApp showModal:]. It works all fine and dandy. Problem is, if Cmd-Q is initiated, it does a highlight

Re: Modal window and app Quit

2012-08-23 Thread tridiak
On 24/08/2012, at 7:44 AM, Jens Alfke wrote: On Aug 23, 2012, at 12:06 PM, tridiak trid...@ihug.co.nz wrote: I dismiss the panel using [NSApp stopModal]. It consists of a single OK button and an editable textfield (with a number formatter). Would the edit field being screwing things up

Mail server test

2012-04-24 Thread tridiak
Mail server test ___ 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: