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)
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
On Sep 1, 2014, at 5:51, Dave d...@looktowindward.com 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
On Sep 1, 2014, at 4:51 AM, Dave d...@looktowindward.com 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
On Sep 1, 2014, at 9:28 AM, Keary Suska cocoa-...@esoteritech.com wrote:
On Sep 1, 2014, at 4:51 AM, Dave d...@looktowindward.com 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
On Sep 1, 2014, at 11:44, Keary Suska cocoa-...@esoteritech.com wrote:
One future-proof approach that occurred to me is to declare your own enum:
typedef NS_ENUM(NSInteger, MYTextAlignment) {
MYInvalidTextAlignment= -1,
MYLeftTextAlignment= NSLeftTextAlignment,
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
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 unmar...@gmail.com wrote:
You didn't indicate what version of Mac OS X you were running under.
If this is happening under Snow Leopard, then
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
[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
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 luc.van.boga...@me.com wrote:
Hello,
I'm trying to find a way to draw a grid (NSBezierPath 'lines') in a custom
nsview so that it is always
On Sep 1, 2014, at 4:07 PM, has hengist.p...@virgin.net 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
On 2014 Sep 01, at 14:39, Jim Geist velocity...@rodentia.net 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 je...@ieee.org 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
15 matches
Mail list logo