On 8 Aug 2011, at 16:42, Sean McBride wrote:
On Mon, 8 Aug 2011 16:13:50 -0600, Stephen Blinkhorn said:
To be clear, you'd need to use ~/Library/App Support not the one
in /
Library.
OK, no problem in Cocoa with the stringByExpandingTildeInPath: method
of NSString. More problemati
On 8 Aug 2011, at 14:56, Sean McBride wrote:
On Mon, 8 Aug 2011 14:42:54 -0600, Stephen Blinkhorn said:
OK, well /Library/Application Support/CompanyName/ is out I believe
as you're not supposed to store user data in there.
IIRC, the data you're talking about is registration i
On 8 Aug 2011, at 12:56, Quincey Morris wrote:
On Aug 8, 2011, at 11:39 , Stephen Blinkhorn wrote:
OK, well /Library/Application Support/CompanyName/ is out I believe
as you're not supposed to store user data in there.
IIRC, the data you're talking about is registration i
On 8 Aug 2011, at 12:21, Kyle Sluder wrote:
On Mon, Aug 8, 2011 at 11:13 AM, Stephen Blinkhorn
wrote:
I'm afraid your fears have just been confirmed, until I find a better
solution at least. Maybe I can justify this as a kind of protest
against
AudioUnits not being allowed in th
On 8 Aug 2011, at 10:36, Sean McBride wrote:
On Mon, 8 Aug 2011 01:04:07 -0600, Eli Bach said:
It's a validation file containing registration details. My product
is
an AudioUnit plugin so there's no App Store potential but I'd
prefer to
keep things clean just in case.
I don't care where
l users. Any other
suggestions as to where to write it?
Stephen
On 7 Aug 2011, at 21:54, Kyle Sluder wrote:
On Sun, Aug 7, 2011 at 8:48 PM, Stephen Blinkhorn
wrote:
Hello,
Under Tiger, Leopard, and Snow Leopard I use
CFURLWriteDataAndPropertiesToResource to store some data into a
fi
Hello,
Under Tiger, Leopard, and Snow Leopard I use
CFURLWriteDataAndPropertiesToResource to store some data into a file.
On Lion the default permissions appear to have been upgraded almost
everywhere and consequently the code below isn't succeeding. Is it
possible to run the below code a
oops wrong list... again.
On 25 Jun 2011, at 15:01, Stephen Blinkhorn wrote:
On 24 Jun 2011, at 14:58, ben kamen wrote:
i'd just like to add the disclaimer that i have no idea what i'm
doing so don't take my advice too seriously... :) i thought
that my cocoaView
On 24 Jun 2011, at 14:58, ben kamen wrote:
i'd just like to add the disclaimer that i have no idea what i'm
doing so don't take my advice too seriously... :) i thought
that my cocoaView was working but almost right after that ran into
more issues as soon as i actually added views and
Sorry, seems I sent this to the wrong list.
On 19 Jun 2011, at 11:54, Stephen Blinkhorn wrote:
On 18 Jun 2011, at 17:09, ben kamen wrote:
ok, so it seems like my problem is actually in getting it to load
the bundle in the first place. what am i missing?
the bundle identifier in the
On 18 Jun 2011, at 17:09, ben kamen wrote:
ok, so it seems like my problem is actually in getting it to load
the bundle in the first place. what am i missing?
the bundle identifier in the plist is set to : com.olympia-noise-
co.RO_CocoaViewFactory
and in the main cpp file i have this,
ephen Blinkhorn
wrote:
On 17 Jun 2011, at 10:30, Stephen Blinkhorn wrote:
Saying that, I've found that the CPU requirements of the raw
drawing code
(even with relatively fast refresh rates of 20-25 FPS) pales into
insignificance when compared to the objective-c messaging overhead
of
co-ordi
On 17 Jun 2011, at 10:30, Stephen Blinkhorn wrote:
Saying that, I've found that the CPU requirements of the raw drawing
code (even with relatively fast refresh rates of 20-25 FPS) pales
into insignificance when compared to the objective-c messaging
overhead of co-ordinating the redr
On 17 Jun 2011, at 00:18, Uli Kusterer wrote:
On 17.06.2011, at 03:08, Ken Tozier wrote:
On Jun 16, 2011, at 12:34 PM, Stephen Blinkhorn wrote:
A quick test on a 2GHz iMac takes at least twice as long 4.5
seconds to generate a 10,000 X 10,000 CGLayer of noise.
Stephen
Thanks. Difference
On 15 Jun 2011, at 19:18, Nick wrote:
Hello
I am wondering if there are any free custom NSSlider controles
available
with changed knob and trackbar images?
The ones similar to QuickTime Player and iTunes (for a player
application).
Does everyone implement them from scratch by subclassing th
, 2011, at 2:30 PM, Stephen Blinkhorn wrote:
I've got the random noise part working and it easily fast enough.
Its a shame there isn't a way to specify the opacity when drawing
CGLayers. I'd find that useful but I imagine there is a reason for
On 15 Jun 2011, at 12:35, David Duncan wrote:
CGContextSetAlpha
Brilliant
___
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)lis
lean up
free(buffer);
return result;
}
On Jun 14, 2011, at 6:20 PM, Stephen Blinkhorn wrote:
Thanks for all the Core Image tips. Completely missed that somehow.
At the moment I'm drawing a lot of stuff into CGLayers to save
redrawing the same thing over
On 14 Jun 2011, at 16:07, Quincey Morris wrote:
On Jun 14, 2011, at 14:56, Stephen Blinkhorn wrote:
I'm looking to fill a large custom view with noise. The solution I
have arrived at so far is taking much too long to draw for it to be
useable. Does anyone know any better ways of achi
16:07, Quincey Morris wrote:
On Jun 14, 2011, at 14:56, Stephen Blinkhorn wrote:
I'm looking to fill a large custom view with noise. The solution I
have arrived at so far is taking much too long to draw for it to be
useable. Does anyone know any better ways of achieving this in
Cocoa? The
Hi all,
I'm looking to fill a large custom view with noise. The solution I
have arrived at so far is taking much too long to draw for it to be
useable. Does anyone know any better ways of achieving this in Cocoa?
The basic idea is to add an amount of noise to a base color pixel by
pixel,
nevermind, i'm going to post this question on the Accessibility list
instead.
On 27 Feb 2011, at 19:12, Stephen Blinkhorn wrote:
Hello,
I make extensive use of custom NSControls in some of my GUIs.
Recently I ran into a problem whilst trying to implement
accessibility features in
Hello,
I make extensive use of custom NSControls in some of my GUIs. Recently
I ran into a problem whilst trying to implement accessibility features
in these controls.
I have added the test methods below which work perfectly for custom
NSView classes but are not working as expected with c
n the AnimatedTableView demo app available on the
dev site. Check it out and let me know if you need pointing to the
particular part of code that does it.
corbin
On Dec 21, 2010, at 12:11 PM, Stephen Blinkhorn wrote:
Hi all,
I'm trying to capture a view and its contents as an NSImage whi
Hi all,
I'm trying to capture a view and its contents as an NSImage which I
can subsequently draw in the view. The idea is that I'm trying to
'freeze' the view's content (custom sliders, buttons, menus etc) and
present this image in the view.
I'm getting mixed results when attempting to
:
NSString * snowflake = @"\u2744";
Cheers,
Dave
On Nov 24, 2010, at 10:11 AM, Stephen Blinkhorn wrote:
On 24 Nov 2010, at 12:02, Nick Zitzmann wrote:
On Nov 24, 2010, at 10:46 AM, Stephen Blinkhorn wrote:
Hi all,
This seems like a lame question to be fair. I would like to be
On 24 Nov 2010, at 12:02, Nick Zitzmann wrote:
On Nov 24, 2010, at 10:46 AM, Stephen Blinkhorn wrote:
Hi all,
This seems like a lame question to be fair. I would like to be
able to access the snowflake symbol from the 'Zapf Dingbats' font
and simply draw it into a cust
Hi all,
This seems like a lame question to be fair. I would like to be able
to access the snowflake symbol from the 'Zapf Dingbats' font and
simply draw it into a custom control applying attributes like font
colour to it.
Charecter details are:
Name: 'SNOWFLAKE'
Unicode: 2744
UTF8: E2 9
On 15 Nov 2010, at 22:06, Quincey Morris wrote:
The other thing I forgot to say earlier is that the new
'panel:shouldEnableURL:' method is explicitly documented to be
*ignored* for Save panels, which makes more sense in terms of the
OP's original question than the older delegate method.
Thanks for the comprehensive replies.
On 15 Nov 2010, at 17:47, Graham Cox wrote:
On 16/11/2010, at 10:41 AM, Stephen Blinkhorn wrote:
Returning NO for NSSavePanel's panel:shouldShowFilename: delegate
will grey out/de-activate an item in the file browser but the item
can sti
Hello,
Something doesn't seem right here.
Returning NO for NSSavePanel's panel:shouldShowFilename: delegate will
grey out/de-activate an item in the file browser but the item can
still be selected and doing so copies the file name string into the
Save As: text field.
Is this the expected
On 9 Nov 2010, at 13:32, Nick Zitzmann wrote:
On Nov 9, 2010, at 12:26 PM, Stephen Blinkhorn wrote:
I'm using a simple NSArray stored on a web server as part of a
version tracking system. First I download the array using
arrayWithContentsOfURL: and check the version etc. The pr
Hello,
I'm using a simple NSArray stored on a web server as part of a version
tracking system. First I download the array using
arrayWithContentsOfURL: and check the version etc. The problem with
this approach is that if the server is down the method appears to hang
indefinitely.
So I
Great, thanks Sean. Somehow managed to miss that.
On 6 Nov 2010, at 14:42, Sean McBride wrote:
On Sat, 6 Nov 2010 14:36:43 -0600, Stephen Blinkhorn said:
I'd like to add a couple of options in an NSSavePanel so a user can
specify the type of sound file to save a document as, e.g. AIFF
Hello,
I'd like to add a couple of options in an NSSavePanel so a user can
specify the type of sound file to save a document as, e.g. AIFF, WAV
etc and also a quality e.g. 24 or 16 bit. Is it possible to add a
couple of NSPopUpMenu controls to NSSavePanel or is it necessary to
build a cu
On 31 Oct 2010, at 15:40, Paul Davis wrote:
On Sun, Oct 31, 2010 at 5:20 PM, Kevin Dixon
wrote:
I was wondering if there are any UI component libraries for audio
controls available for Cocoa? The standard UI components (NS* family)
have some short comings when it comes to dealing with audio.
On 7 May 2010, at 00:52, Jonathan Hess wrote:
On May 6, 2010, at 7:27 PM, Stephen Blinkhorn wrote:
Thanks Isaac,
On 6 May 2010, at 16:35, Isaac Wankerl wrote:
With #2, you might want to investigate using ibtool and the --
convert option to modify the nibs. Just from reading the man
page
/
Thanks,
Stephen
Isaac
http://www.kerlmax.com/
On Thu, May 6, 2010 at 5:22 PM, Stephen Blinkhorn > wrote:
Hi all,
I write audio unit plugins and Cocoa's flat name space is causing
some real problems. Essentially I have a static library of Cocoa
user interface classes that I use i
Hi all,
I write audio unit plugins and Cocoa's flat name space is causing some
real problems. Essentially I have a static library of Cocoa user
interface classes that I use in multiple plug-in projects. These plug-
ins are often run side by side by the user so I can't guarantee that a
pr
Hi Markus,
On 8 Jan 2010, at 10:50, Markus Spoettl wrote:
Are you absolutely sure that you're not updating more than the 20
times mentioned in your initial message?
The audio back end posts a notification every 50ms to the GUI that the
display needs refreshing. The GUI checks a few things
On 7 Jan 2010, at 18:16, Nick Zitzmann wrote:
On Jan 7, 2010, at 4:58 PM, Stephen Blinkhorn wrote:
The real cause seems to be all the view setup messaging that needs
to happen after I mark the view with setNeedsDisplay:YES. My top
hit in shark is: objc_msgSend (seems wrong for an app
OK Nick, thanks, will look into that tonight.
On 7 Jan 2010, at 18:16, Nick Zitzmann wrote:
On Jan 7, 2010, at 4:58 PM, Stephen Blinkhorn wrote:
The real cause seems to be all the view setup messaging that needs
to happen after I mark the view with setNeedsDisplay:YES. My top
hit in
Hello,
I'm using Cocoa for the GUI of some audio plugins I'm writing. In the
GUI I have the need for accurate level metering via 16 meters spread
around at various points in the GUI. For satisfactory results I need
to update the screen 20 times a second. This is causing a lot of CPU
ov
On 11 Dec 2009, at 17:57, Stephen Blinkhorn wrote:
I'm writing the Cocoa GUI for an audio unit plugin and I've run into
a problem. In one host app I'm not receiving mouse events in my
custom sliders/buttons etc. My drop down menus work fine but they
are subclasses of
Hello all,
Reasonably descriptive title. I'm writing the Cocoa GUI for an audio
unit plugin and I've run into a problem. In one host app I'm not
receiving mouse events in my custom sliders/buttons etc. My drop down
menus work fine but they are subclasses of NSPopUpMenu and
NSPopUpMenuC
On 10 Oct 2009, at 11:20, Stephen Blinkhorn wrote:
On 10 Oct 2009, at 01:14, tahome izwah wrote:
Yes, actually it does as of version 8.0.5
Hooray, where's the champagne!
sorry, wrong list.
___
Cocoa-dev mailing list (Cocoa-dev@lists.appl
On 10 Oct 2009, at 01:14, tahome izwah wrote:
Yes, actually it does as of version 8.0.5
Hooray, where's the champagne!
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Con
On 14 Sep 2009, at 10:33, angel noguera camara wrote:
Hello,
I was developing an Audio Unit Effect on Leopard with no problems,
but I've
updated my OS to Snow Leopard and now appears 1 error that says
"SysError 0
during open of "AUResources.r". What can I do? If I comment the line
"#include
On 11 Sep 2009, at 11:08, Peter Ammon wrote:
This style is not available on Tiger. If you want to make it look
the same on Tiger and later, you will have to make your own custom
control. It's easier to just live with the appearance on Tiger.
That's true but if you have the time, inclinat
quot; at that point,
by appearing to register clicks inside the bounds and not outside.
--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
On Mon, Sep 7, 2009 at 11:19 AM, Stephen Blinkhorn > wrote:
On 7 Sep 2009, at 01:09, Quincey Morris wrote:
On Sep 6, 2009, at 23
On 7 Sep 2009, at 01:09, Quincey Morris wrote:
On Sep 6, 2009, at 23:38, Stephen Blinkhorn wrote:
I make a custom view (really a NSControl subclass) and I use a
place holder in IB to position it on screen. I also set it's size
to be say 50 wide by 22 high.
If I draw the view by s
On 6 Sep 2009, at 21:30, Quincey Morris wrote:
On Sep 6, 2009, at 18:41, Stephen Blinkhorn wrote:
OK, do you mean the origin of [self bounds] isn't always (0, 0)?
That could explain a few things..
The origin of the bounds coordinate system is always (0, 0) by
definition, but w
On 6 Sep 2009, at 18:37, Quincey Morris wrote:
There are several things wrong with this:
-- You're not accounting for the bounds origin, so it only works if
the origin happens to be (0, 0).
OK, do you mean the origin of [self bounds] isn't always (0, 0)? That
could explain a few things.
Hi all,
I would have thought that the code below will center text horizontally
and vertically within a NSRect. Sometimes it does but it depends on
the font I am using. So the below may work for Verdana but if I
change to Helvetica then the vertical centering is off.
Is there a better wa
Hello and advanced apologies if I'm doing something stupid here but..
NSMutableDictionary *attributes = [[NSMutableDictionary alloc] init];
[attributes setObject:[style tabFont] forKey:NSFontAttributeName];
[attributes setObject:[style frame1Color]
forKey:NSForegroundColorAttributeName];
NSSt
Oh, where:
range = max_slider_value - min_slider_value;
fineGrain = 0.125;
Stephen
On 23 Jul 2009, at 14:55, Stephen Blinkhorn wrote:
Hi,
I am using the following two methods for a scrolling number box
which is essentially a slider in the form of a NSTextField
subclass. I have yet to
Hi,
I am using the following two methods for a scrolling number box which
is essentially a slider in the form of a NSTextField subclass. I have
yet to implement this for my custom sliders but maybe this is a good
starting point for you? When I first dabbled with custom sliders all
I did
Hello Cocoa-Dev,
Oh the joy of subclassing subclasses of NSControl and NSCell. I am
making a custom pop up menu object. I subclass NSPopUpButtonCell and
simply draw my custom menu button in the drawBezelWithFrame method.
The frame rect that this method passes in has been inset by some
a
On 16 Jul 2009, at 11:44, I. Savant wrote:
No uncertainty. It's a wiki. The camel notation MakesThatALink but
there's NoPageByThatName? (because nobody ever filled in what it
thinks is a stub) so there's a question mark beside it.
Oh yeah, so that's why it is a different colour and under
Hello,
During my recent encounter with custom NSControl and NSCell subclasses
I found this amazing nugget on cocoadev.com.
"..If you write an NSControl subclass without using cells, and you
want to use target/actions, you have to link your Control with a
NSActionCell? by adding in your NS
OK, many thanks for the tips Steve.
On 28 Jun 2009, at 19:07, Steve Christensen wrote:
On Jun 28, 2009, at 5:09 PM, Stephen Blinkhorn wrote:
I have just noticed that some standard Cocoa objects look very
different on 10.4 compared to 10.5. In particular NSPopUpMenu and
NSButton objects
Hello all,
I have just noticed that some standard Cocoa objects look very
different on 10.4 compared to 10.5. In particular NSPopUpMenu and
NSButton objects are being drawn as much larger controls on 10.4
(rounded rect style, mini size). I am creating xib files via IB on
Leopard.
Also
Hi Laurent,
On 24 Jun 2009, at 00:58, Laurent Cerveau wrote:
//now we get the data and do something with them
macAddressData = (CFDataRef)
IORegistryEntryCreateCFProperty
( controllerService,CFSTR(kIOMACAddress), kCFAllocatorDefault, 0);
does macAddressData now contain the raw bytes to a s
That's a good point actually. Everything I do in my software
happens inside one window with no scroll bars etc. For completeness
here is my current number box class :)
designed for non-editable text field naturally.
Stephen
___
Cocoa-dev mailin
On 22 Jun 2009, at 14:16, Quincey Morris wrote:
(2) *Nested* wheel-scrolling behavior can be a frustration for
users, because it forces them to stop and think what the effect of
using the scroll wheel is going to be. This is just exacerbated when
some of the behavior is "harmless" adjustmen
On 22 Jun 2009, at 09:11, Graham Cox wrote:
The standard way to handle this is to pair an ordinary text field
with a stepper control (and maybe a slider, if you have space). The
stepper allows the user to spin the value up or down while the text
field allows them to type a value.
I'm usin
Morning Cocoa-Dev,
I need a scrolling number box type object for my GUI. At the moment I
am subclassing NSTextField and overriding mouse and scroll wheel
events so a user can drag the numeric value up/down. This seems a bit
clumsy somehow.
Perhaps a better idea would be a custom
export MallocStackLogging=1
Stephen
On 12 Jun 2009, at 22:29, Ryan Joseph wrote:
I wasn't sure where to post this but Cocoa programmers should know
as well as any one else I thought.
I have just learned about the "leaks" unix utility for detecting
memory leaks but I'm not unix savvy enoug
On 10 Jun 2009, at 11:27, Nick Zitzmann wrote:
On Jun 10, 2009, at 11:20 AM, Stephen Blinkhorn wrote:
I use NSPopUpButton to create menus with say 30-40 entries. I'd
like to divide the top half of the menu visually from the bottom
half with lines or some kind of heading. Is this pos
Hello, quick question,
I use NSPopUpButton to create menus with say 30-40 entries. I'd like
to divide the top half of the menu visually from the bottom half with
lines or some kind of heading. Is this possible via NSPopUpButton - I
populate the menu via addItemsWithTitles:
Thanks,
Steph
On 9 Jun 2009, at 22:44, Quincey Morris wrote:
On Jun 9, 2009, at 19:50, Stephen Blinkhorn wrote:
If you must use a tab view, you could also approach it with a view
xib and a view controller to define the common part of each tab.
The view controller would act as an intermediary to pass the
On 9 Jun 2009, at 18:47, Quincey Morris wrote:
In the absence of further information, it seems that a tab view is
wrong approach here. If all the so-called tabs are identical in user
interface terms (that is, the only difference is the data they
retrieve from your data model), you'd probab
Hi all,
Imagine I have an NSTabView with 10 tabs that all contain the same
collection of controls. The only difference is that each control's
action/outlet is connected to a different controller object (of the
same class type). Is it possible to select a whole tab of controls,
copy them
On 7 Jun 2009, at 22:13, Rob Keniger wrote:
On 06/06/2009, at 6:08 AM, Stephen Blinkhorn wrote:
Does anyone know if it is possible to change the current tab in a
tabless NSTabView from within Interface Builder without having to
go into the inspector and change tabless style to top tabs
Hello Cocoa Dev,
Does anyone know if it is possible to change the current tab in a
tabless NSTabView from within Interface Builder without having to go
into the inspector and change tabless style to top tabs, right tabs
etc. I use a lot of small tabless NSTabView objects and I finally got
75 matches
Mail list logo