On Dec 10, 2009, at 11:55 PM, Parimal Das wrote:
> I must be missing something here.
> Can anyone point what is wrong here.
(1) there is no need for an autorelease pool in such a simple -awakeFromNib.
It will be in the context of an autorelease pool to begin with and doesn't
create enough mem
The subject says pretty much everything. I’m looking for a simple way to set
some xattr attributes.
thanks
scott
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
On 11.12.2009, at 09:33, Scott Anguish wrote:
> The subject says pretty much everything. I’m looking for a simple way to set
> some xattr attributes.
http://www.zathras.de/sourcecode.htm#UKXattrMetadataStore
That about what you're looking for?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText
On 09.12.2009, at 23:49, Laurent Daudelin wrote:
> I guess that with Carbon not being ported to 64bits, NSRunningApplication was
> needed. It just makes life a little harder if you have to support both 10.5
> (which doesn't have NSRunningApplication but has Process Manager) and 10.6
> (which has
Hi,
when drawing custom buttons, should you use NSBezierPath or NSImage instances?
Which is more efficient, performance-wise / memory-wise?
Thanks for any tips,
- Mike
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin re
On 11 Dec 2009, at 09:10, Michael Abendroth wrote:
> when drawing custom buttons, should you use NSBezierPath or NSImage instances?
Yes.
> Which is more efficient, performance-wise / memory-wise?
You probably don't need to worry too much about this on modern systems. In
fact, I'll go further
On 10.12.2009, at 13:26, Graham Cox wrote:
>
> On 10/12/2009, at 10:45 PM, Christian Ziegler wrote:
>
>> In the target controller I don't have IBOutlets for those steppers and
>> textfields. Those are in another (mediating) controller. Question is whether
>> there is another way to do this in
On Fri, Dec 11, 2009 at 11:14 AM, Alastair Houghton wrote:
> On 11 Dec 2009, at 09:10, Michael Abendroth wrote:
>
>> when drawing custom buttons, should you use NSBezierPath or NSImage
>> instances?
>
> Yes.
>
>> Which is more efficient, performance-wise / memory-wise?
>
> You probably don't need
On 11 Dec 2009, at 10:35, Michael Abendroth wrote:
> Woah, thanks a lot, Alastair! The reason I asked was because e.g.
> NSTextFieldCell subclasses get drawn & redrawn quite a lot, so on
> slower systems this might have been a problem ...
If you were e.g. rendering something huge with an NSShadow
Hi List,
I have a table that gets reloaded when a user presses a button. Is it possible
to animate reloadData and if so can you point me in the right direction?
Thanks
Phil
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
There's a set of methods in UITableView for animated table updates.
All the insert/delete/road calls should be within a beginUpdates/
endUpdates block.
- (void)beginUpdates; // allow multiple insert/delete of rows and
sections to be animated simultaneously. Nestable
- (void)endUpdates;
On Dec 11, 2009, at 12:45 AM, Gerriet M. Denkmann wrote:
> I have a window with an NSTableView which is bound to an NSArrayController
> which has as content an NSMutableArray called "theArrayOfDictionaries".
> Works fine.
>
> "theArrayOfDictionaries" contains NSMutableDictionaries.
> So I added
I still get reports of this crash:
#8 0x968b411d +[%NSToolbarView
_findFirstKeyViewInDirection:forKeyLoopGroupingView:]
(see http://lists.apple.com/archives/cocoa-dev/2009/Aug/msg01974.html)
I would like to know what hack is responsible. Is there a way to find the name
of the application that
Hello All,
I'm developping a document-based application that up to today could
read two document types and write one of the two.
So one type was set as an editor the other one as viewer in the
Info.plist.
All the save/open panel stuff is the plain AppKit behavior and I
h
On Dec 10, 2009, at 2:45 PM, Lee Ann Rucker wrote:
>
> On Dec 10, 2009, at 1:24 PM, Emmanuel Pinault wrote:
>
>>
>>>
>>> Have you tried using [NSStatusItem setView:]?
>>>
>>
>>
>> setView is for custom view.. Because if I dont do a setView, the view
>> Method return nil so far. And look
Set a breakpoint on +[NSObject poseAsClass:] and launch your app perhaps?
On 11 Dec 2009, at 16:47, David Riggle wrote:
> I still get reports of this crash:
>
> #8 0x968b411d +[%NSToolbarView
> _findFirstKeyViewInDirection:forKeyLoopGroupingView:]
>
> (see http://lists.apple.com/archives/cocoa
Hi,
Sorry if this has been posted before; I did a quick scour but might not have
used the right keywords (this issue isn't very general).
Basically I'm noticing that when I expect KVO observations to be triggered,
they aren't. Most likely this is due to my misunderstanding, but I'd like to
post a
Hi All,
The standard progress indicator in IB comes with Blue color fill.
Is it possible to change the color to green?
Thanks
Arun KA
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
On Fri, Dec 11, 2009 at 10:22 AM, Arun wrote:
> The standard progress indicator in IB comes with Blue color fill.
> Is it possible to change the color to green?
No.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not po
Not easily. Why do you want to do this? Are you perhaps looking for
NSLevelIndicator?
On 11 Dec 2009, at 18:22, Arun wrote:
> Hi All,
>
> The standard progress indicator in IB comes with Blue color fill.
> Is it possible to change the color to green?
>
> Thanks
> Arun KA
>
I'm at my wits end trying to add a service to my app, with no luck
getting it into the services menu of anything.
It appears to have the right info in both the lsregister dump, and the
~/Library/Preferences/pbs. ... .plist file. (I've included these below).
Could it be that something is wrong
Are there any good way to get/set a view's transform? (No, not using
CALayers.) It is possible to flip a view's horizontal and/or vertical
orientation by setting negative values for the bounds size. However, a
request for the view's bounds always returns a validated rect, giving no
indication of
I am using a UIDatePicker in landscape - and I have noticed on the device
(in Simulator it works fine) that the animation of the numerals into
position can be seen floating and delayed into position.
What I mean is that if I scroll a column down, I see a number fly up from
the bottom to it's posit
I'd like to display a NSComboBox that is narrower than the widest of strings in
the list of items, but have the popup list be wide enough so the whole string
can be read. But I haven't found a way to have the 'non-tracking' width to be
different from the tracking width.
I've tried altering the
I take it back - it does not work in the Simulator either.
I am calling up the view from the AppDelegate like this:
EditAlarmViewController *myEditView = [[EditAlarmViewController alloc]
initWithNibName:@"EditAlarmViewController" bundle:[NSBundle mainBundle]];
//TODO: get these to come out of th
I found that this control works fine in Iphone OS 3.0 and higher in landscape -
but only if its initialized when in landscape mode (i.e. status bar and all).
If you rotate it or its rotated, it won’t work.
On Dec 11, 2009, at 2:38 PM, Eric E. Dolecki wrote:
> I take it back - it does not work i
What do you mean initialized when in landscape mode? (I'm still green here).
How can I make sure that happens?
On Fri, Dec 11, 2009 at 3:41 PM, Alex Kac wrote:
> I found that this control works fine in Iphone OS 3.0 and higher in
> landscape - but only if its initialized when in landscape mode (
I placed the picker using IB if that matters - does this means it will init
before the app goes to landscape? Do I need viewDidLoad and create the
picker by hand, and then rotate it?
On Fri, Dec 11, 2009 at 3:55 PM, Eric E. Dolecki wrote:
> What do you mean initialized when in landscape mode? (I
Don’t use IB if you’re going to use landscape UIPicker.
On Dec 11, 2009, at 2:58 PM, Eric E. Dolecki wrote:
> I placed the picker using IB if that matters - does this means it will init
> before the app goes to landscape? Do I need viewDidLoad and create the picker
> by hand, and then rotate it
I have printer sharing turned on on my computer. I am trying to discover the
two shared printers with bonjour and am using the following line of code for it:
[serviceBrowser searchForServicesOfType:@"_printer._http._tcp." inDomain:@""];
I know that the printers are shared so why are they not sh
Well, we simply create the control via code on loadView and then when
orientation changes, we release it and recreate it. This way its always
initialized properly for that orientation.
- (void)createRelativeTriggerTimeSpanPicker
{
timeSpanPicker = [[UITimeSpanPicker alloc] initWithFrame:
On Dec 11, 2009, at 09:10, Steven Degutis wrote:
[reformatted to be less annoying]
> // when this is called, the KVO in SDObject is triggered with an empty array
>
> [object bind:@"content" toObject:controller2 withKeyPath:@"arrangedObjects"
> options:nil];
> NSLog(@"mark 2");
Yeah, well, at t
That's brilliant - thank you very much. Works great!
On Fri, Dec 11, 2009 at 4:01 PM, Alex Kac wrote:
> Well, we simply create the control via code on loadView and then when
> orientation changes, we release it and recreate it. This way its always
> initialized properly for that orientation.
>
>
Forgot to note that I'm still working in OS X 10.5.8, XCode 3.1.4.
On Fri, Dec 11, 2009 at 11:06:38AM -0800, John Velman wrote:
>
> I'm at my wits end trying to add a service to my app, with no luck
> getting it into the services menu of anything.
>
__
That works great. I have another view that does some animation, and I forgot
to close the animation block with a commitAnimations, and the view with the
picker in it animates in too - seems like an unclosed animation block
anywhere in such a case can screw up a view with a picker in landscape in
it
Ok, well in my previous message I did not realize I was suppose to search for
ipp not printer. when I browse and find ipp printers I am taken to the cups
reference page. So I am wondering if there is a fairly basic guide to printing
to a cups printer from cocoa. or over bonjour?
Thanks
On Dec 11, 2009, at 8:49 AM, Half Activist wrote:
> Hello All,
>
> I'm developping a document-based application that up to today could
> read two document types and write one of the two.
> So one type was set as an editor the other one as viewer in the
> Info.plist.
> All the
On Dec 11, 2009, at 8:47 AM, David Riggle wrote:
> I still get reports of this crash:
>
> #8 0x968b411d +[%NSToolbarView
> _findFirstKeyViewInDirection:forKeyLoopGroupingView:]
>
> (see http://lists.apple.com/archives/cocoa-dev/2009/Aug/msg01974.html)
>
> I would like to know what hack is respo
On Dec 11, 2009, at 1:58 PM, Development wrote:
> Ok, well in my previous message I did not realize I was suppose to search for
> ipp not printer. when I browse and find ipp printers I am taken to the cups
> reference page. So I am wondering if there is a fairly basic guide to
> printing to a c
Hi,
Apologies for a rather basic question, but I’ve searched my Cocoa books and the
web and despite lots of information on threads I’m still a little confused
about how best to do what I want to do ensuring that I’m not opening myself up
to crashes (possibly just nervousness owing to not using
I'm trying to figure out how to print using IPP from an iphone.
I'm able to get bits of info from google but nothing so far has been overly
clear. I'm still trying to figure it all out.
On Dec 11, 2009, at 3:07 PM, David Duncan wrote:
> On Dec 11, 2009, at 1:58 PM, Development wrote:
>
>> Ok,
Have you tried making the view layer-back and applying a CIHueAdjust filter to
the layer?
On Dec 11, 2009, at 1:59 PM, Mike Abdullah wrote:
> Not easily. Why do you want to do this? Are you perhaps looking for
> NSLevelIndicator?
>
> On 11 Dec 2009, at 18:22, Arun wrote:
>
>> Hi All,
>>
>>
On Dec 11, 2009, at 4:43 PM, Keith Blount wrote:
The problem is that if the project grows in size, saving this
dictionary to disk can take two or three seconds. For this reason, I
would like to save it in the background, so it doesn’t hold up the
interface. According to Scott Anguish’s Coco
Is there a way to do voice synthesis on the iPhone/iTouch like there is in OS X
Cocoa using a [NS}voiceSynthesizer?
Charlie Dickman
3tothe...@comcast.net
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mo
On Dec 11, 2009, at 3:48 PM, Charlie Dickman wrote:
> Is there a way to do voice synthesis on the iPhone/iTouch like there is in OS
> X Cocoa using a [NS}voiceSynthesizer?
iPhone OS does not provide support for doing this. If you would like it, I
would recommend filing a bug report asking for
On 11/12/2009, at 9:35 PM, Christian Ziegler wrote:
>> The target controller should be the controller with these outlets. It's OK
>> to have multiple tiers of controllers, but make sure each one has a clearly
>> defined role. Sounds like you have not defined a clear role for each
>> controller
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
I have a Gen 2 iPod and the simulator trying to share data over bluetooth I am
using the standard GK routines. However the iPod cannot see the simulator and
the simulator, though it can see the ipod, as soon as I try to connect I get
the error in the connect screen :"Connection Lost"
when i log
On 11/12/2009, at 8:59 PM, Alastair Houghton wrote:
> Anyway, the thing to do is to draw what you want, and then *if* it's going
> too slowly there are various things you can do to speed it up (like caching
> any expensive rendering in an NSImage, doing reduced or simplified rendering
> during
I was wondering if iPhone OS 3.0 or better had the R-Tree module compiled into
the sqlite3 framework that ships on the device? I've got 19,500 or so
annotations and adding them all at once to the MKMapView object I have seems at
the very least insane...
-- Jeff_
Hi Ken,
Many thanks for your reply, much appreciated. And thanks for pointing out the
potential pitfalls. I most likely would have passed it the NSMutableDictionary
ivar had you not pointed this out.
So, if I understand correctly, I could do something as simple as this:
// Presumably as the ob
Oops, sorry, forgot to ask: what happens if the user hits save again while the
separate thread is already saving the search indexes to disk? So, there is one
save which detaches a thread and starts to write the data to disk, then seconds
later the user instigates another save that causes the dat
On 12/12/2009, at 12:37 PM, Keith Blount wrote:
> NSDictionary *searchIndexesDeepCopy = [NSKeyedUnarchiver
> unarchiveObjectWithData:[NSKeyedArchiver
> archivedDataWithRootObject:searchIndexes]];
>
> [NSThread detachNewThreadSelector:@selector(saveSearchIndexes:) toTarget:self
> withObject:se
On Dec 11, 2009, at 1:06 pm, Alex Kac wrote:
> if (timeSpanPicker)
> {
> //remove it
> [timeSpanPicker removeFromSuperview];
> [timeSpanPicker release];
>
> //now add it again
> [self createRelativeTr
Hi,
Is there a way to track if an iPhone application is re-installed locally
with the SDK.. without having a server ?
Kind Regards,
Tharindu Madushanka
tharindufit.wordpress.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not pos
i haven't yet started to study OpenGL, but i just came across a java
sample online that creates a water effect, and the sample code was
surprisingly quite small.
here is the java example: http://www.neilwallis.com/java/water.html
essentially, i'd like to replicate this, or something similar, usi
On Dec 11, 2009, at 7:43 PM, Keith Blount wrote:
Oops, sorry, forgot to ask: what happens if the user hits save again
while the separate thread is already saving the search indexes to
disk? So, there is one save which detaches a thread and starts to
write the data to disk, then seconds late
On Fri, Dec 11, 2009 at 8:43 PM, Keith Blount wrote:
> Oops, sorry, forgot to ask: what happens if the user hits save again while
> the separate
> thread is already saving the search indexes to disk?
Also consider what happens when the user hits save, then immediately
quits before your file wri
I made a similar post to the Xcode list originally, but it was suggested that I
redirect it to the Cocoa list. Here it is:
I'm working with a Cocoa app compiling with gcc 4.0 in Xcode 3.2.1. Both the
debug and the release builds launch fine from the Finder, but the app does not
launch through
Hi,
I need to output a double into a text file and then read it back with
100% accuracy, will using NSNumber stringValue and then using NSString
doubleValue give me good results?
For example, if I write the following:
double a,b;
a=some number;
b=[[[NSNumber numberWithDouble:a] stringVal
Hi All,
I'm looking for a custom view to display an analogue signal similar to garage
band or instruments - does anyone know of any open source efforts in this area
or even something like an IBplugin I could purchase?
Cheers - james
___
Cocoa-dev ma
Hello,
I'm trying to mimic the background of Time Machine's large On/Off switch (
http://zcr.me/l/n2 ) by drawing it via code. This is my code so far:
cellFrame.size.height = 27;
NSBezierPath *border = [NSBezierPath bezierPathWithRoundedRect:cellFrame
> xRadius:5.0 yRadius:5.0];
[border setLine
hello list
As I change the name of a File in Finder, neither
NSURLContentModificationDateKey nor NSURLAttributeModificationDateKey do
change.
I have an internal list of Files as NSURLs in my application and watch the
directory with FSEvents. I properly receive the notification that something
Sorry if this is a bit too basic, but...
I want to know when the user exits edit fields, so I can check values and
provide immediate feedback. I'm using
- (void)controlTextDidEndEditing:(NSNotification *)aNotification
and it works.
I also need to know when a user enters an edit field, so I can
You should not compare floating point numbers for equality in most cases. This
is true of any language on any platform.
See
http://www.cygnus-software.com/papers/comparingfloats/Comparing%20floating%20point%20numbers.htm
- Bryan
On Dec 10, 2009, at 10:02:23 PM, RedleX Support wrote:
> Hi,
>
On Dec 10, 2009, at 4:51 PM, Joe Programmer wrote:
> I made a similar post to the Xcode list originally, but it was suggested that
> I redirect it to the Cocoa list. Here it is:
>
> I'm working with a Cocoa app compiling with gcc 4.0 in Xcode 3.2.1. Both the
> debug and the release builds la
On 11 Dec 2009, at 22:54, Keary Suska wrote:
> On Dec 11, 2009, at 12:45 AM, Gerriet M. Denkmann wrote:
>
>> I have a window with an NSTableView which is bound to an NSArrayController
>> which has as content an NSMutableArray called "theArrayOfDictionaries".
>> Works fine.
>>
>> "theArrayOfDic
Could someone please clarify the behavior of -[NSWorkspace
absolutePathForAppBundleWithIdentifier:] when an application is in the
Trash?
In almost all of my testing, the method returns nil when an app is in
the Trash. However, one time in the debugger (on Mac OS X 10.5.8) I
caught it retu
On Dec 11, 2009, at 10:23 AM, Paxton Sanders wrote:
> Sorry if this is a bit too basic, but...
>
> I want to know when the user exits edit fields, so I can check values and
> provide immediate feedback. I'm using
> - (void)controlTextDidEndEditing:(NSNotification *)aNotification
> and it works
On 11 Dec 2009, at 21:14, Bryan Henry wrote:
> You should not compare floating point numbers for equality in most cases.
> This is true of any language on any platform.
Indeed, some floating-point numbers (such as the one represented by the integer
0x7fc0) will compare as not equal to themse
On Dec 11, 2009, at 4:56 AM, martin halter wrote:
As I change the name of a File in Finder, neither
NSURLContentModificationDateKey nor
NSURLAttributeModificationDateKey do change.
I have an internal list of Files as NSURLs in my application and
watch the directory with FSEvents. I proper
On Dec 10, 2009, at 6:51 PM, Joe Programmer wrote:
#0 0x92fad4e6 in objc_exception_throw
#1 0x92a0790b in -[NSObject(NSObject) doesNotRecognizeSelector:]
#2 0x92962db6 in ___forwarding___
#3 0x92962982 in __forwarding_prep_0___
#4 0x9291bc53 in CFStringGetCString
#5
Sorry for the wonky subject. It's easier to explain in code:
NSNumber* innerKey = [NSNumber numberWithInt:0] ;
NSDictionary* dic = [NSDictionary dictionaryWithObject:@"Hello"
forKey:innerKey] ;
[[NSUserDefaults standardUserDefaults] setObject:dic
On Fri, Dec 11, 2009 at 11:10 PM, Jerry Krinock wrote:
> Sorry for the wonky subject. It's easier to explain in code:
>
> NSNumber* innerKey = [NSNumber numberWithInt:0] ;
> NSDictionary* dic = [NSDictionary dictionaryWithObject:@"Hello"
> forKey:inn
74 matches
Mail list logo