that
you're linking that replaces via category a method implementation internal
to AppKit that +underPageBackgroundColor relies on.
Bingo! You nailed it
I have a category on NSColor that defines all the named SVG colours, and
there's one called 'linenColor'. In 10.8, there appears
On Aug 7, 2012, at 9:48 AM, Kyle Sluder wrote:
Yes, and devs are also supposed to prefix their own methods to avoid exactly
this problem.
And if your prefix clashes with the hidden one that Apple or another
framework vendor chose, you're *still* SOL.
Nope, we totally don't need
On 08/08/2012, at 7:46 PM, Uli Kusterer witness.of.teacht...@gmx.net wrote:
Prefix/suffix them with gc_ / _gc ? Alternately, just define them in a .plist
and build your table from that, then you don't need to implement named
NSColor methods for them at all.
I have a table, that's not a
On Aug 8, 2012, at 3:23 PM, Graham Cox graham@bigpond.com wrote:
The SVG standard defines 147 named colours:
http://www.december.com/html/spec/colorsvg.html
I thought it would be a nice programmer convenience to have NSColor return
these colours using the same naming convention that
On Tue, 7 Aug 2012 08:38:12 +1000, Graham Cox said:
I have a category on NSColor that defines all the named SVG colours,
and there's one called 'linenColor'. In 10.8, there appears to be a
private method called +linenColor which is invoked by
+underPageBackgroundColor, so it calls my SVG method
+linenColor which is invoked by
+underPageBackgroundColor, so it calls my SVG method and I get my sRGB
chino colour. Removing that method it now works as expected.
Aren't Apple-private methods supposed to start with underscore, to avoid
exactly this problem?
Yes, and devs are also supposed to prefix
On Aug 7, 2012, at 9:09 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote:
On 7 Aug 2012, at 15:31, Sean McBride s...@rogue-research.com wrote:
Aren't Apple-private methods supposed to start with underscore, to avoid
exactly this problem?
Yes, and devs are also supposed to prefix
3 AppKit 0x7fff81b09948 -[NSColor
patternImage] + 66
My code:
NSColor* bkg = [NSColor underPageBackgroundColor];
NSImage* patImg = [bkg patternImage];
--Graham
On 04/08/2012, at 6:51 PM, Marcus Karlsson m
A stab in the dark: Have you tried running with OBJC_PRINT_REPLACED_METHODS
set? There's a small chance that you have code in your app or a library that
you're linking that replaces via category a method implementation internal to
AppKit that +underPageBackgroundColor relies on.
Also, it might
to
AppKit that +underPageBackgroundColor relies on.
Bingo! You nailed it
I have a category on NSColor that defines all the named SVG colours, and
there's one called 'linenColor'. In 10.8, there appears to be a private method
called +linenColor which is invoked by +underPageBackgroundColor
that replaces via category a method implementation internal
to AppKit that +underPageBackgroundColor relies on.
Bingo! You nailed it
I have a category on NSColor that defines all the named SVG colours, and
there's one called 'linenColor'. In 10.8, there appears to be a private
method called
On 07/08/2012, at 9:12 AM, Lee Ann Rucker lruc...@vmware.com wrote:
You could use an NSColorList, or take a cue from NSImage and have an [NSColor
colorNamed:]
I have both of these; the 'named' methods are really just an additional
convenience. I'm not actually making use of them at
On Sat, Aug 04, 2012 at 08:48:20AM +1000, Graham Cox wrote:
On 04/08/2012, at 6:55 AM, Gary L. Wade garyw...@desisoftsystems.com
wrote:
That color is actually a pattern. What are you doing that gives you the
unexpected result?
I'm expecting it to be a pattern, with a fairly obvious
Hi all,
ML introduces +[NSColor underPageBackgroundColor];
I had thought this was to be the grey linen texture as used in Mail, etc but
instead I'm getting a sort of flat pale cream colour. Is that right?
--Graham
___
Cocoa-dev mailing list
On Aug 3, 2012, at 3:00 PM, Graham Cox graham@bigpond.com wrote:
Hi all,
ML introduces +[NSColor underPageBackgroundColor];
I had thought this was to be the grey linen texture as used in Mail, etc but
instead I'm getting a sort of flat pale cream colour. Is that right?
--Graham
:
Hi all,
ML introduces +[NSColor underPageBackgroundColor];
I had thought this was to be the grey linen texture as used in Mail, etc but
instead I'm getting a sort of flat pale cream colour. Is that right?
--Graham
Hello.
I don't know if that's correct but I had to take
On Fri, 3 Aug 2012 23:00:26 +1000, Graham Cox said:
ML introduces +[NSColor underPageBackgroundColor];
I had thought this was to be the grey linen texture as used in Mail, etc
but instead I'm getting a sort of flat pale cream colour. Is that right?
I think it's supposed to be the colour related
On 04/08/2012, at 6:55 AM, Gary L. Wade garyw...@desisoftsystems.com wrote:
That color is actually a pattern. What are you doing that gives you the
unexpected result?
I'm expecting it to be a pattern, with a fairly obvious linen texture.
I get the colour and i use it to -setBackgroundColor:
18 matches
Mail list logo