Hi,
I have a method that takes a String and depending on it’s value needs to return
an NSTextAlignment type. However, if the string is invalid, then I want to
indicate that an error so I pass back -1. This is fine expect I get warnings on
this code:
if (myTextAllignment != -1)
theField
Some ideas, I don't know if it works:
in your validation method, change
NSArray *allSpecies = [self.managedObjectContext
executeFetchRequest:allSpeciesIDsFetchRequest error:nil];
NSArray *allCatalogIDs = [allSpecies valueForKeyPath:@"catalogID"];
if ([allCatalogIDs containsObject:*ioValu
On Sep 1, 2014, at 5:51, "Dave" wrote:
>
> I have a method that takes a String and depending on it’s value needs to
> return an NSTextAlignment type. However, if the string is invalid, then I
> want to indicate that an error so I pass back -1. This is fine expect I get
> warnings on this code:
On Sep 1, 2014, at 4:51 AM, Dave wrote:
> I have a method that takes a String and depending on it’s value needs to
> return an NSTextAlignment type. However, if the string is invalid, then I
> want to indicate that an error so I pass back -1. This is fine expect I get
> warnings on this code:
On Sep 1, 2014, at 9:28 AM, Keary Suska wrote:
> On Sep 1, 2014, at 4:51 AM, Dave wrote:
>
>> I have a method that takes a String and depending on it’s value needs to
>> return an NSTextAlignment type. However, if the string is invalid, then I
>> want to indicate that an error so I pass back
On Sep 1, 2014, at 11:44, "Keary Suska" wrote:
>
> One future-proof approach that occurred to me is to declare your own enum:
>
> typedef NS_ENUM(NSInteger, MYTextAlignment) {
>MYInvalidTextAlignment= -1,
>MYLeftTextAlignment= NSLeftTextAlignment,
>MYRightTextAlignment
Hi,
The method that returns the NSTextAlignment is interpreting other data to come
up with the best alignment, if there is no “Best Alignment” it needs to signal
this back to the caller.
I’ve solved the problem by returning a BOOL to say if the NSTextAlignment is
valid or not and passing the a
Just wanted to follow up on this. The bug is not fixed. It is still there in
10.9. Any other news on it?
Georg
On 16 Jan 2012, at 22:27, Mark Munz wrote:
>
> You didn't indicate what version of Mac OS X you were running under.
>
> If this is happening under Snow Leopard, then this is a known
Hello,
I'm trying to find a way to draw a grid (NSBezierPath 'lines') in a custom
nsview so that it is always visible, regardless of the underlying color.
I'm using a transparency layer to draw the grid, and I have tried various
NSCompositeOperation settings without succes. Is this at all possib
[I'm cross-posting this from the AppleScript Users mailing list - it's
not a Cocoa question, but quite a few developers are extremely
interested in alternatives to AppleScript for application automation so
I believe it has relevance. I don't wish to risk the Cocoa Dev list
mom's wrath with a lo
Hi all -
Is there any way to set a timer to fire when the system is in full sleep, or a
public API to Power Nap? (Right now I only care about OS X, not iOS).
I suspect the answer to both questions is no. If that’s true, then my app
doesn’t need to worry about it either :)
Thanks!!
__
you may wish to investigate the quartz blend modes, e.g. kCGBlendModeDifference
might work for you.
On Sep 1, 2014, at 3:53 PM, Luc Van Bogaert wrote:
> Hello,
>
> I'm trying to find a way to draw a grid (NSBezierPath 'lines') in a custom
> nsview so that it is always visible, regardless of
On Sep 1, 2014, at 4:07 PM, has wrote:
> [I'm cross-posting this from the AppleScript Users mailing list - it's not a
> Cocoa question, but quite a few developers are extremely interested in
> alternatives to AppleScript for application automation so I believe it has
> relevance. I don't wish
> On 2014 Sep 01, at 14:39, Jim Geist wrote:
>
> Is there any way to set a timer to fire when the system is in full sleep
Register an observer of NSWorkspaceWillSleepNotification.
> or a public API to Power Nap?
I’ve never seen any. App Nap, yes. Power Nap, no.
___
> On Sep 1, 2014, at 4:46 PM, Jerry Krinock wrote:
>
> Register an observer of NSWorkspaceWillSleepNotification.
This will fire immediately _before_ the system sleeps, not _during_ sleep. (And
if your handler doesn't return quickly enough, it'll prevent the OS from going
to sleep.)
—Jens
___
15 matches
Mail list logo