On 04/08/2009, at 4:37 PM, Alexander Bokovikov wrote:
I'm speaking about design-time only. Menu items themself are always
active n design-time.
I select a menu item within a menu window in IB. Go to the
Inspector. The leftmost tab, where item title, etc. can be assigned.
Here I can see t
On 04.08.2009, at 6:56, Graham Cox wrote:
On 04/08/2009, at 3:52 AM, Alexander Bokovikov wrote:
I'm sorry, but as I can see now, main menu shortcuts are also
gray... I can delete them but I can't assign them. Why? I've
created controller actions and have connected actions of menu items
This question is probably better-suited to Xcode-users or the iPhone
dev forums at devforums.apple.com.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
I'm having a heck of a time code signing for a particular members of
my development group. He's on a japanese hand set and I cannot for the
life of me sign an app that he can actually install. He keeps getting
'Valid SIgning Identity for this Profile not present in your keychain'
from Xcode
On Aug 3, 2009, at 8:15 PM, BareFeet wrote:
Has anyone got procedure for getting AGRegex to work in their project?
I've used AGRegex.framework in a number of projects, but it's been so
long that I've no idea what steps I went through to set it up. The
copy here
https://tcobrowser.svn.s
On 04/08/2009, at 1:17 PM, Graham Cox wrote:
I'm using the following code from Uli's UKCrashReporter:
ABMultiValue* emailAddresses = [[[ABAddressBook sharedAddressBook]
me] valueForProperty: kABEmailProperty];
NSString* emailAddr =
NSLocalizedStringFromTable
(@"MISSING_EMAIL_ADDRESS",@"
I gave up on AGRegex and used RegexKit, which was very easy to get to
work.
On Aug 3, 2009, at 20:15:18, BareFeet wrote:
Hi all,
Has anyone got procedure for getting AGRegex to work in their project?
Thanks,
Tom
BareFeet
From: BareFeet
Date: 31 July 2009 9:03:20 AM AEST
To: Cocoa Dev
I'm using the following code from Uli's UKCrashReporter:
ABMultiValue* emailAddresses = [[[ABAddressBook sharedAddressBook]
me] valueForProperty: kABEmailProperty];
NSString* emailAddr =
NSLocalizedStringFromTable
(@"MISSING_EMAIL_ADDRESS",@"UKCrashReporter",@"");
if( ema
Hi all,
Has anyone got procedure for getting AGRegex to work in their project?
Thanks,
Tom
BareFeet
From: BareFeet
Date: 31 July 2009 9:03:20 AM AEST
To: Cocoa Dev
Subject: Re: NSString and regular expressions
Hi Rob,
I personally just compile the files directly into my project.
You
Hi All,
RegexKitLite looks promising. It claims to only require you to add
the .h and .m file to your project and link to the libicucore.dylib
library.
I managed to incorporate RegexKitLite fairly easily once I found in
the documentation the steps to link to the libicucore.dylib library.
On Aug 3, 2009, at 6:32 PM, Kiel Gillard wrote:
On 04/08/2009, at 10:59 AM, Kyle Sluder wrote:
On Mon, Aug 3, 2009 at 5:47 PM, Kiel Gillard
wrote:
Do you have a documentation reference for that? I would have
expected the
isa swizzling to be an implementation detail of the runtime that
is ha
Thanks!
Quick question. I've got the source, I'm getting problems building it.
The problem I see is that I don't have the
"InterfaceBuilder.framework". What's strange is that I can't seem to
find that framework. The default xcode project for shortcut recorder
is trying to reference the framework i
On Mon, Aug 3, 2009 at 6:32 PM, Kiel Gillard wrote:
> When if I observe some property of Foo *bar at some point in time, KVO
> swizzles the isa to KVONotifying_Foo. Then, if I observe a different
> property of the same object at some other point in time, are you suggesting
> KVO swizzles the isa to
On 04/08/2009, at 10:59 AM, Kyle Sluder wrote:
On Mon, Aug 3, 2009 at 5:47 PM, Kiel Gillard
wrote:
Do you have a documentation reference for that? I would have
expected the
isa swizzling to be an implementation detail of the runtime that is
handled
before my subclass inits. Of course, what
On Mon, Aug 3, 2009 at 5:47 PM, Kiel Gillard wrote:
> Do you have a documentation reference for that? I would have expected the
> isa swizzling to be an implementation detail of the runtime that is handled
> before my subclass inits. Of course, what I expect and what happens in
> reality do not alw
On 04/08/2009, at 3:52 AM, Alexander Bokovikov wrote:
I'm sorry, but as I can see now, main menu shortcuts are also
gray... I can delete them but I can't assign them. Why? I've created
controller actions and have connected actions of menu items with the
controller.
Just the keyboard ite
On 04/08/2009, at 10:26 AM, Kyle Sluder wrote:
On Aug 3, 2009, at 5:03 PM, Kiel Gillard
wrote:
Unless, of course, you have code in your setter method that handles
changes to and from nil. For example, you may add or remove self as
an observer for keypaths of an different object value. This
On Aug 3, 2009, at 5:03 PM, Kiel Gillard wrote:
Unless, of course, you have code in your setter method that handles
changes to and from nil. For example, you may add or remove self as
an observer for keypaths of an different object value. This would
save repeating the change handling code i
On 04/08/2009, at 9:46 AM, Kyle Sluder wrote:
On Mon, Aug 3, 2009 at 4:35 PM, Todd
Heberlein wrote:
Both methods seem to me to do the same thing (releasing foo), but I
presume
the first one would trigger any KVO observers where as the second
wouldn't.
Is that why the simple "release" is us
On Mon, Aug 3, 2009 at 4:35 PM, Todd Heberlein wrote:
> Both methods seem to me to do the same thing (releasing foo), but I presume
> the first one would trigger any KVO observers where as the second wouldn't.
> Is that why the simple "release" is used instead of a setter in the dealloc
> methods,
While working through "Beginning iPhone 3 Development" I've seen the
following a lot, and it seems like a general Cocoa issue.
In -viewDidUnload methods the code has the form:
self.foo = nil;
Whereas in -dealloc methods the code has the form:
[foo release];
Both methods seem t
On Aug 3, 2009, at 4:54 PM, Chase Meadors wrote:
I thought that was just a preference... come to think of it, why in
the world DOES that make difference??
In a pop-up menu, the selected item is the displayed item. In a pull-
down menu, the displayed item is always the very first item, but a
...What the...?? That fixed it!...
I thought that was just a preference... come to think of it, why in
the world DOES that make difference??
On Aug 3, 2009, at 5:49 PM, Quincey Morris wrote:
On Aug 3, 2009, at 15:16, Chase Meadors wrote:
NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc
On Aug 3, 2009, at 15:16, Chase Meadors wrote:
NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc]
initTextCell:@"" pullsDown:YES];
You want a popup menu, not a pull-down menu.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do n
I think this isn't working either. Let me post the relevant code and
see if you notice anything off the bat.
- (NSCell *)tableView:(NSTableView *)sender dataCellForTableColumn:
(NSTableColumn *)tableColumn row:(NSInteger)row {
//cut: judge column and row...
Hi!
Do I still need to write my own accessors in order to perform
NSUndoManager registration?
Could my model objects observe themselves and register undoable
changes in observeValueForKeyPath:ofObject:change:context: ?
How does CoreData go about registering changes with the undo manager?
> P.S. I very rarely use the C interfaces, do I have to also run CFRelease on
> the result of the CGImageSourceCopyProperties call?
Yes, you should. See 'The Create Rule':
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/
Thanks John.
I looked at the documentation but there doesn't seem to be any obvious way to
get the info. The only CGImageSourceCreateWithURL creation constants are:
CFStringRef kCGImageSourceTypeIdentifierHint ; CFStringRef
kCGImageSourceShouldAllowFloat ; CFStringRef kCGImageSource
When a modeless Cocoa window is closed by clicking the close widget, I
see a console message saying "unlockFocus called too many time." (sic).
It doesn't happen if the window is closed using the File:Close menu
item. I set a breakpoint on NSLog, and saw a stack starting like this:
NSLog
-[NS
Jerry Krinock wrote:
On 2009 Aug 03, at 11:28, James Walker wrote:
I'm having trouble getting sounds to play reliably. When it happens,
-[NSSound play] returns YES, but I hear nothing, and the
sound:didFinishPlaying: delegate method is not called. The sound in
question is an AIFF file with
On Aug 3, 2009, at 13:24, Chase Meadors wrote:
Maybe I'm missing what you mean here, but if I do that, then what
should I do in the objectValueFor... method?
On Aug 3, 2009, at 2:13 PM, Quincey Morris wrote:
Yes, but according to that message you *didn't* set the correct
selection index in
Snow Leopard is under NDA. You can't talk about it here, but you can
at http://devforums.apple.com.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
On 2009 Aug 03, at 11:28, James Walker wrote:
I'm having trouble getting sounds to play reliably. When it
happens, -[NSSound play] returns YES, but I hear nothing, and the
sound:didFinishPlaying: delegate method is not called. The sound in
question is an AIFF file with a duration of abou
On Aug 3, 2009, at 1:23 PM, kentoz...@comcast.net wrote:
Is there some way (other than rolling my own image readers) to just
get the metadata from a file rather than having to load the entire
thing? A third party class that would be something like
"NSImageInfo" (if Apple had written such a c
Maybe I'm missing what you mean here, but if I do that, then what
should I do in the objectValueFor... method?
On Aug 3, 2009, at 2:13 PM, Quincey Morris wrote:
On Aug 3, 2009, at 12:01, Chase Meadors wrote:
Actually, and I forgot to mention this, I need number 1 because my
second column c
Hi
I wrote an image catalog application that scans files on a Windows server,
extracts certain image file info (like mod date, name, width, height and color
mode) and writes this info to a database. During testing, in a real
environment, the app started crashing and I narrowed the problem dow
On Aug 3, 2009, at 4:09 PM, Jim O'Connor wrote:
Are there new requirements for Snow Leopard and screen savers which
must be met?
Snow Leopard is still under non-disclosure agreement and cannot be
discussed on this list. Use the developer forums at the Apple
Developer Connection site.
The sample screen saver doesn't work on Leopard.
Are there new requirements for Snow Leopard and screen savers which
must be met?
Thanks,
Jim O'Connor
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
In my Core Data document-based app, I'm trying to group undo
registrations so that the user does not have to hit "Undo" more than
once to undo a single action.
Some of this is caused by the logic in my setters. For example,
changing the 'name' attribute of an object in a collection posts a
Consider using NSDrawer. It can contain a content view (i.e. your info
view) and can be attached to any side of a parent window, and be shown
or hidden.
If you don't want to use this, however, just grab the content view's
frame,
NSRect r = [[window contentView] frame]
and then call:
[[w
From: Chase Meadors
Date: August 3, 2009 2:01:57 PM CDT
To: Quincey Morris
Subject: Re: Table view data source methods order?
Actually, and I forgot to mention this, I need number 1 because my
second column contains a mix of text cells and popup cells depending
on the data type.
And s
From: Chase Meadors
Date: August 3, 2009 1:27:26 PM CDT
To: Andy Lee
Subject: Re: Table view data source methods order?
This is beginning to frustrate me. I tried assigning the menu in the
-dataCellFor... method and eliminating -willDisplay... altogether.
But STILL all of my popups have
Hello,
I'm trying to do something simple, I have a NSWindow containing a
NSTableView that resizes with the with the window. When I click on one
element I want to display additional information in a subView that I'm
adding with [[theWindow contentView] addSubview:infoView];
The problem is wh
I'm having trouble getting sounds to play reliably. When it happens,
-[NSSound play] returns YES, but I hear nothing, and the
sound:didFinishPlaying: delegate method is not called. The sound in
question is an AIFF file with a duration of about half a second. It
seems like whether it fails de
On Aug 3, 2009, at 1:04 AM, Chase Meadors wrote:
I'm having a bit of trouble here with table view data source
methods. I have implemented. I have these three:
1) - (NSCell *)tableView:(NSTableView *)sender
dataCellForTableColumn:(NSTableColumn *)tableColumn row:
(NSInteger)row;
2) - (id)ta
On 03.08.2009, at 20:58, Alastair Houghton wrote:
If the options in question are useful enough to merit a keyboard
shortcut, then they're useful enough to appear in the application's
main menu hierarchy. If not, then they aren't.
I'm sorry, but as I can see now, main menu shortcuts are al
On Aug 3, 2009, at 1:04 AM, Chase Meadors wrote:
I'm having a bit of trouble here with table view data source
methods. I have implemented. I have these three:
1) - (NSCell *)tableView:(NSTableView *)sender
dataCellForTableColumn:(NSTableColumn *)tableColumn row:
(NSInteger)row;
2) - (id)ta
No, both delegate and data source are connected, and they are all
getting called. This is why I believe the order is the problem.
On Aug 3, 2009, at 12:16 AM, Quincey Morris wrote:
On Aug 2, 2009, at 22:04, Chase Meadors wrote:
I'm having a bit of trouble here with table view data source
m
I have my own event-loop where I call nextEventMatchingMask: repeatedly.
Many examples I found just pass a untilDate of [NSDate distantPast] to get
this behaviour as stated in the documentation but this doesn't seem to work
for me - even in a very simple setting.
Can anyone see what's wrong?
int m
On 03.08.2009, at 19:00, Graham Cox wrote:
There's much more to life than controls.
Completely agree. But I don't like to say that _every_ popup menu
_must_ have keyboard shortcuts. I'd just like to say, that it would be
good to give such possibility to the coder.
But back to your quest
On 3 Aug 2009, at 12:45, Graham Cox wrote:
The reason it's not supported by default is that a view might not be
the final target for a contextual menu - the view may have many
objects any of which could be the menu's target
I think the reason (that it isn't supported) is much simpler than
Hi,
If you add more and more key/value observers with
addObserver:forKeyPath:options:context: this call takes longer and
longer in a non-linear way.
I posted a bug report today (ID: 7112953) but maybe someone already
has a workaround. Here is my sample code:
#include
@interface ModelO
On 03/08/2009, at 10:47 PM, Alexander Bokovikov wrote:
Can't agree. If we setup a control, as capable to have keyboard
focus, then, activating this control, we activate all hierarchy of
its parents, and we definitely can apply the "lowest level" parent's
popup menu (if any) with its shortc
Hi, All,
I can't understand why, but target path is not changed when I click on
NSPathControl's popup panel. The control shows the same path, as was
chosen earlier. I can click "Choose..." item and NSOpenPanel will
appear, where I can choose a new directory, and these changes will be
save
On 03.08.2009, at 17:45, Graham Cox wrote:
the view may have many objects any of which could be the menu's
target - only the click location can tell you which one,
Can't agree. If we setup a control, as capable to have keyboard focus,
then, activating this control, we activate all hierarch
On 03/08/2009, at 9:38 PM, Alexander Bokovikov wrote:
OK, nothing to do here, but notice, that Dad Bill (unlike to Dad
Steve) :) uses another approach - a view, having keyboard focus,
automatically activates its popup menu shortcuts, so it's easy to
work with a view as by mouse, as by keyb
On 03.08.2009, at 15:56, Graham Cox wrote:
... because the point of contextual menus is that they have a
context (the click location) which activating them from the keyboard
doesn't provide.
OK, nothing to do here, but notice, that Dad Bill (unlike to Dad
Steve) :) uses another approach
On Aug 3, 2009, at 4:07 AM, aaron smith wrote:
Does anyone know of any prebuilt views for something like this:
http://tinyurl.com/mggdtd - I've been snooping around google for a
while but can't seem to get the right keywords to bring anything up.
Any ideas? Thanks much!
I believe this is wha
On 03/08/2009, at 7:22 PM, Alexander Bokovikov wrote:
It's my first attempt to assign a popup menu to a view, so perhaps
my question is stupid, but I can't find an explanation in the
Apple's docs... The "Key Equiv." field is grayed, and don't see any
obvious solution to activate it. I've c
Hi,
I have a navigation bar with custom background. However, the default
glossy-style UIBarButtonItem looked weird with my background.
How do I replace the navigation button with my own style?
I tried creating an UIBarButtonItem manually with custom view (UIButton)
then set it to the backButtonIt
On 03/08/2009, at 4:07 PM, Deepa wrote:
I am developing an desktop app for which I want to implement a
behavior which is similar to 'New from clipboard' of Preview
application.
I tried using NSPasteboard:
// To get file copied to clipboard from Finder
NSArray *files = [[NSPasteboard gener
Hi, All,
It's my first attempt to assign a popup menu to a view, so perhaps my
question is stupid, but I can't find an explanation in the Apple's
docs... The "Key Equiv." field is grayed, and don't see any obvious
solution to activate it. I've created a menu, associated it with a
view, as
On 2 Aug 2009, at 21:48, Steve Cronin wrote:
Folks;
NSTextView <- NSText <- NSView <- NSReponder <- NSObject
NSTextField <- NSView <- NSReponder <- NSObject
At runtime if I have access to an instance of NSTextView how can I
address the NSTextField?
I know I should know this
On Aug 3, 2009, at 1:13 AM, Christopher J Kemsley
wrote:
So, in all reality, the +method could be boiled down to:
[self.new autorelease] ;
This is improper use of the dot syntax. new is not a property, so it
should not be accessed using the dot syntax.
--Kyle Sluder
___
Oh yeah - I thought I did that once and it didn't work... Though, now
that I think about it, I think I did it the other way in the past
(used self in a +method to refer to a newly created object)
So, in all reality, the +method could be boiled down to:
[self.new autorelease] ;
since
self.
Does anyone know of any prebuilt views for something like this:
http://tinyurl.com/mggdtd - I've been snooping around google for a
while but can't seem to get the right keywords to bring anything up.
Any ideas? Thanks much!
___
Cocoa-dev mailing list (Co
Am Mo,03.08.2009 um 02:18 schrieb Graham Cox:
Hi all,
I'm just thinking through a couple of problems and wondered if
anyone had anything to say about it...
In my app I have several things that apply on a "per document"
level, for example, the mapping from Quartz co-ordinate values to
s
67 matches
Mail list logo