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
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;
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
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
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
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:
>>
>>
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+"⅕"
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)
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
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
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,
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
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
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
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};
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
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
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
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.
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
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
___
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:
22 matches
Mail list logo