Ken;
I think I get it now. In the simple case you describe below, use:
someThing = [myObject performSelector:@selector(myMethod)] instead
of someThing = [myObject myMethod]
This seems quite useful!! performSelector's more ambitious cousins
seem a tad less 'friendly' but I get th
Hi, Mahaboob,
Did you try calling [outlineView reloadData] in ur launch method?
-Chaitanya
On 30-Dec-08, at 10:33 AM, Mahaboob wrote:
My application uses an NSPopupButton and NSOutlineView. PopupButton
shows
all the table names in the database and the outlineView displays the
data in
the cor
On Dec 29, 2008, at 22:06, Steve Cronin wrote:
In the meantime, tweaked your snippet and just added this at the end
of the header of the class where the -respondsToSelector: issue arose:
//respondsToSelector silencer - see -myMethodName
@interface NSObject (MyClassName)
- (id) foo;
@end
This
On Dec 30, 2008, at 12:06 AM, Steve Cronin wrote:
Ken - I don't understand what you said about the method's
signature's compliance with NSObject _protocol_.
I looked at the protocol definition in the documentation and I just
don't understand well enough to see what I could do to "side-step"
On Dec 27, 2008, at 02:13, tobias assmann wrote:
I use some NSColorWell objects in a preference section of my view.
User can chosse so me colors there. All works fine exept one thing.
The NSColorWell objects are initialized with default values out of a
NSColorList when the UI is opened. But
One of my windows has a delegate implementing the -
windowWillResize:toSize: method. This forces the window size to be
certain whole multiples of rows in a matrix of icons, the idea being
to prevent the user from sizing the window so that only a partial row
is visible, which is ugly. It work
get.. I wasn't using get.. works perfectly now.. thanks!
thanks
scott
On 30-Dec-08, at 12:51 AM, Charles Steinman wrote:
On Mon, Dec 29, 2008 at 9:15 PM, Scott Anguish
wrote:
Does anyone have any examples of using the Scripting Bridge with
iTunes?
Specifically how you get the currently s
On Dec 28, 2008, at 7:31 PM, Richard Ashwell wrote:
If I understand Philip, I am having the same challenge, It isn't
enough for me to let NSPersistentDocument do the load, I want a
notification or some way of knowing after the load is completed so
that I can fix up other related stuff. Is
On 30/12/2008, at 4:11 PM, John Kestner wrote:
So am I right in believing that drawRect: should not need to be
explicitly called in each subview from within my custom view's
drawRect:? In any case, see if you can make sense of this...
Seems way too complicated to me. I have this in a cate
On 29/12/2008, at 9:04 AM, automa...@gmail.com wrote:
I am new to Cocoa/Objective-C and new to the forum, so apologies if
this is a newbie questions.
I am trying to use NSAppleScript from Objective-C to execute the
following one liner, and covert the result into an NSRect:
"Tell applicat
So am I right in believing that drawRect: should not need to be
explicitly called in each subview from within my custom view's
drawRect:? In any case, see if you can make sense of this...
// This is in my controller:
- (IBAction) saveAllVisualizations: (id)sender
{
NSRect pRect = NSM
Folks;
Thanks for the rapid and thought-provoking responses!!
Ken - I don't understand what you said about the method's signature's
compliance with NSObject _protocol_.
I looked at the protocol definition in the documentation and I just
don't understand well enough to see what I could do to
On Dec 29, 2008, at 9:09 PM, Ken Thomases wrote:
To be clear, it's not the -respondsToSelector: expressions that are
causing the warnings, it's the eventual invocations of the methods
when you decide that some object does respond to them.
If the method satisfies the signature requirements of
If you look in the NSString (UIStringDrawing) documentation, you'll
see that NSString has a -sizeWithFont: method that returns a CGSize,
which will be the bounding box for that string when its drawn with the
passed in UIFont. You can then use that size as part of the CGRect
for constructin
Does anyone have any examples of using the Scripting Bridge with
iTunes? Specifically how you get the currently selected tracks
returned as an array of iTunesTrack items.
Thanks
Scott
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
On Dec 29, 2008, at 10:56 PM, Kyle Sluder wrote:
On Mon, Dec 29, 2008 at 11:49 PM, Steve Cronin
wrote:
Call me finicky if you want but I love spanking clean compiles.
Not finicky; appropriately cautious. But this is going to happen
whenever you start deciding to invoke methods based on
-re
My application uses an NSPopupButton and NSOutlineView. PopupButton shows
all the table names in the database and the outlineView displays the data in
the corresponding table selected from the popupButton. It is working fine. I
also need to display one default table's data in the outlineView when I
Hi
I am new to iPhone application development and please help me on this.
I need to add the contents in a text field to a UILabel. But I can't guess
how long the string in the text field be. There fore, can I make a UILabel
from the text ( I mean to fit the text to UILabel size). I have searched bu
Hi all,
I need to parse a file that existed in server and that file and its
data is created by Window's exe.
Since after each line two characters will be appended, that is one is
new line and carriage return.
However, if I create the file(Created by Mac App), after appending
new line cha
If I understand Philip, I am having the same challenge, It isn't
enough for me to let NSPersistentDocument do the load, I want a
notification or some way of knowing after the load is completed so
that I can fix up other related stuff. Is there someway to at a
minimum:
1) In some overridd
I am new to Cocoa/Objective-C and new to the forum, so apologies if this is
a newbie questions.
I am trying to use NSAppleScript from Objective-C to execute the following
one liner, and covert the result into an NSRect:
"Tell application \"Finder\" to return (bounds of window of desktop)"
Ladies & Gentlemen,
Allow me te introduce to you some superb developer tools by Todd Ditchendorf:
http://www.scan.dalo.us/
One of these tools is SOAP Client:
SOAP Client is a free Cocoa-based developer tool for Mac OS X Tiger
that allows you access and debug WSDL & SOAP-based Web Se
Hello all,
I hope my question is not that stupid. I wouldn`t ask, if I knew anything more
to do. Seems like I am stuck with this:
I use some NSColorWell objects in a preference section of my view. User can
chosse so me colors there. All works fine exept one thing. The NSColorWell
objects are i
On 30 Dec 2008, at 3:49 pm, Steve Cronin wrote:
The functionality is fine but the compiler warnings for "no 'foo'
method found" bug me.
Call me finicky if you want but I love spanking clean compiles.
On the contrary, clean compiles with no warnings (even with many extra
warnings enabled)
hi,
I want to use different combinations of paragraph styles in nstextview .
for example : combination of linespacing, paragraphspacing, headindent and
tailindent . These all styles must be activated in a single operation ,such
as in a single buttonclick etc.
Is this possible?
please help.
tha
On Mon, Dec 29, 2008 at 11:49 PM, Steve Cronin wrote:
> Call me finicky if you want but I love spanking clean compiles.
Not finicky; appropriately cautious. But this is going to happen
whenever you start deciding to invoke methods based on
-respondsToSelector:. The compiler needs to know some a
Folks;
I have some methods which might be handled by one of several objects.
So I have a set of if ( [objectX
respondsToSelector:@selector(foo)] ) {... } else if ( [objectY
respondsToSelector:@selector(foo)] ) {... }
The functionality is fine but the compiler warnings for "no 'foo'
The scrollwheel input ignores NSScrollView's -setVerticalLineScroll:
setting.
Is this intentional, or should I file a bug?
Is there a way to fix this behaviour other than subclassing that I've
missed? It's pretty annoying.
--Graham
___
Cocoa-d
Considering the prevalence of sidebars and insets in printed
material, I'm surprised that there isn't some discussion of this
issue somewhere (at least I haven't found it...) Is the Apple Way
to just use RTF or XML with style sheet for this kind of
embellishment?
I think it's probably ex
Hi Peter,
I have a menu that needs to be populated on demand, so I've set an
NSMenu delegate and note the update request in "menuNeedsUpdate:".
...
The problem is that the NSMenu will not resize itself to show
items added from outside of "menuNeedsUpdate:".
...
A third possible cause is tha
so your saying to make it set up the cookies headers for the
NSURLRequest?
if I do that, how can I get the setcookie header from the server?
On Dec 29, 2008, at 5:25 PM, Mike Abdullah wrote:
The system really isn't designed for this sort of thing sadly :( How
about instead, setting up a WebR
The system really isn't designed for this sort of thing sadly :( How
about instead, setting up a WebResourceLoadDelegate to modify all
outgoing URL requests doing:
[aRequest setHTTPShouldHandleCookies:NO]
You can then again use the WebResourceLoadDelegate methods to receive
the URL respons
Matteo,
Did you ever get a response on this issue?
Did you find a solution ?
I am having the exact same problem.
Thank you!
Sandro Noel.
On 20-Nov-08, at 4:21 AM, Matteo Manferdini wrote:
Hi everyone.
I'm battling against a very strange behaviour of NSCollectionView.
To tell
the truth this
Ok I finally got it together, the problem I'm having now is that
WebView calls [NSHTTPCookieStorage(NSPrivate) _cookieStorage] and than
goes to debugger.
I know it works because I tried NSLog(@"%@", [[NSHTTPCookieStorage
sharedHTTPCookieStorage] cookies]); and it outputs an empty array like
Matt, thanks. This suggestion worked:
[patchController setValue[NSNumber numberWithFloat:pitch]
forKeyPath:@"patch.pitch.value"]
The strange thing is that I tried something almost identical to this
that didn't work. I can't remember what I did, but your idea is
working great.
Next step
hi,
i've got an NSOtlineView, and an NSTreeController
working together with core data. i've just added a
delete menu item which invokes remove like so
if treeController canRemove
treeController remove
the problem is that sometimes when i delete, my
outline view delegate gets sent an outlineV
On Mon, Dec 29, 2008 at 4:41 PM, John Kestner wrote:
> Yep, they're actual subviews nested in my custom view, double-checked by
> going to list view in IB.
You may need to post your "Save All Visualizations" code. This is
hard to "visualize" without it (pun intended).
--
I.S.
_
Yep, they're actual subviews nested in my custom view, double-checked
by going to list view in IB.
On Dec 29, 2008, at 4:28 PM, I. Savant wrote:
Just by way of a quick reply, are you sure your subviews are
actually nested subviews in IB? In other words, you're sure you
haven't merely dropped
Hello,
I'm working on a Core Data Application with a custom atomic store for
encrypting the persistent storage file. I believe I finally was able
to get the atomic store working however my problem now is that I need
to be able to use a user supplied password as an option when
initializin
On Mon, Dec 29, 2008 at 4:02 PM, John Kestner wrote:
> I guess I just don't understand why an NSView will draw all its subviews to
> screen, but when I try doing it offscreen into a file, the subviews won't
> draw without a lot of work. Any advice is appreciated.
Just by way of a quick reply,
I am now 99% sure that its drawing method is doing something awkward. Here
are the results of what happened when I implemented my own draw method:
http://screencast.com/t/FbOLyvgDS
On Mon, Dec 29, 2008 at 3:41 PM, Carmen Cerino Jr. wrote:
> For the clipping issue, I am 95% sure it has to do with
Hate to be a pest, but had to throw this one up again in case it got
lost over the holiday. I figure drawing offscreen with subviews
created in IB has got to be common enough that someone would know the
right strategy. I can do what I want with [NSString
drawAtPoint:withAttributes:] but tha
For the clipping issue, I am 95% sure it has to do with how NSPopUpButton
draws the image. If you look at the following screen capture, you will
notice the NSButton and NSPopUpButton differ greatly on how they draw their
images.
http://screencast.com/t/zXY5sLZP
On Mon, Dec 29, 2008 at 3:18 PM, Car
On Mon, Dec 29, 2008 at 1:57 PM, Steve Wetzel wrote:
> Is there any easy way to change the size of the font so a string will fit
> into UITextView?
You'll probably want to look at the stuff in the NSString UIKit
additions. I believe the category is UIDrawing. There you'll find
various methods t
On Dec 29, 2008, at 10:00 AM, Carmen Cerino Jr. wrote:
[...] However, I am NOT refering to the
delayed menu.
[...]
look at XCode's toolbar
item, you will notice the location of the pulldown triangle is
different. I am just curious as to how they got it positioned more to
the bottom right of the
Is there any easy way to change the size of the font so a string will
fit into UITextView?
___
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
You need to look more closely at the docs for +poseAs:.
--Andy
On Dec 29, 2008, at 12:19 PM, Mr. Gecko wrote:
when I change it from NSObject to NSHTTPCookieStorage it says this
objc[87581]: MYHTTPCookieStorage: [MYHTTPCookieStorage
poseAs:NSHTTPCookieStorage]: MYHTTPCookieStorage defines new
Martin -- still thanks, but, I found a fourth method:
NSLayoutManager -setTextContainer:forGlyphRange:
This is embarrassing because I've been pouring over all the text guidelines
and class documentation for days now, and didn't see this until after I got
your response and tried it. I stumbled o
On Dec 29, 2008, at 10:04 AM, Carmen Cerino Jr. wrote:
You need to subclass in order to get validation working. That is the
only
reason I can think of why it needs to be a subclass
Can you describe the type of validation that you're interested in
performing? Simple validation should work
On Dec 29, 2008, at 10:59 AM, Carmen Cerino Jr. wrote:
The setArrowPosition and preferedEdge methods do not work for me. I
followed
the documentation to get the arrow to appear in the lower right corner
pointing down and nothing happens.
Please file a bug report. At the very least, the doc
The setArrowPosition and preferedEdge methods do not work for me. I followed
the documentation to get the arrow to appear in the lower right corner
pointing down and nothing happens.
On Mon, Dec 29, 2008 at 1:04 PM, Carmen Cerino Jr. wrote:
> Any particular reason to use a subclass? You should be
On Sat, Dec 27, 2008 at 6:22 AM, Graham Cox wrote:
> I'm preprocessing my info.plist file so I can automatically update it with
> version number, etc.
>
> I want to include a URL in my plist (to support Sparkle) but Xcode won't
> let me. If I include the URL directly, it causes an error (xml pars
>
> Any particular reason to use a subclass? You should be able to use a plain
> NSTollbarItem, and set the pop-up button using "-setView:"
You need to subclass in order to get validation working. That is the only
reason I can think of why it needs to be a subclass
As you have noted, you need to
On Dec 29, 2008, at 9:00 AM, Oleg Krupnov wrote:
I am a newbie to Cocoa Memory Management (have been using GC so
far), and I'd like to make sure that my understanding is correct.
- It follows that the actual releasing of objects registered in the
auto-release pool is deferred until the ent
Thanks, Martin. I hadn't found the fact that the form feed character (also
\f, inside q quoted string) would cause the break and move to the new
container. This works for my current testing (I'm just writing a test
program to explore the text system and what tricks I can do with it). If I
need
when I change it from NSObject to NSHTTPCookieStorage it says this
objc[87581]: MYHTTPCookieStorage: [MYHTTPCookieStorage
poseAs:NSHTTPCookieStorage]: MYHTTPCookieStorage defines new instance
variables
On Dec 29, 2008, at 10:57 AM, Mike Abdullah wrote:
Perhaps you could explain why you've f
Well I'm not wanting to use the default cookie system because I'm
trying to make a secure browser which wont save the cookies and would
reset the cookies if inactive and so on so forth.
I did some more tests and tried to do poseAsClass in the main and I
get this message in the debug output
ob
I am a newbie to Cocoa Memory Management (have been using GC so far),
and I'd like to make sure that my understanding is correct.
Let's assume, for the sake of simplicity, that I don't explicitly
create nested auto-released pools, don't detach new threads, use Cocoa
and AppKit etc., and rely on th
Perhaps you could explain why you've felt the need to write a custom
cookie storage system? I think it would help us figure the best
solution. Bear in mind that NSHTTPCookieStorage's design is quite
complicated in that it synchronises with all instances in other apps.
Mike.
On 29 Dec 2008,
Anybody at least knows how to use poseAsClass in 10.5, I think that's
the problem.
On Dec 28, 2008, at 7:52 PM, Mr. Gecko wrote:
Hello, I'm trying to make my own cookie storage system for WebView
and to do that I've found that I need to override
NSHTTPCookieStorage but when I do that how c
There are a few floating around but there are any number of licensing
issues that arise as a result. Google doesn't provide their tileset
for cheap and I've not heard of any success stories w/r/t obtaining
said license from anyone who isn't a huge-ish company. Your best bet
would be to co
On Dec 29, 2008, at 7:00 AM, Carmen Cerino Jr. wrote:
In order to create the item, I started with a subclass of
NSToolbarItem that has a NSPopupButton for its view.
Any particular reason to use a subclass? You should be able to use a
plain NSTollbarItem, and set the pop-up button using "-
Howdy,
I would like to create a pull down toolbar item similar to what Xcode
has for a few of its toolbar items. However, I am NOT refering to the
delayed menu. In order to create the item, I started with a subclass
of NSToolbarItem that has a NSPopupButton for its view. The image for
the toolbar
Anyone know if there is a class or library for working with Google
Maps in Cocoa?
___
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(a
On 30 Dec 2008, at 12:55 am, Marcelo Cicconet wrote:
But how can I move the playback position to another point of the sound
via a slider?
In your controller object, implement an action method like:
- (IBAction)soundTimeAction:(id) sender
{
[mySound setCurrentTime:[sender floatVa
I'd like to control the playback position of a sound managed by the
NSSound class. I just know how to update the playback position based
on the sound current time:
[playbackSlider setFloatValue:[sound currentTime]/[sound duration]];
But how can I move the playback position to another point of the
Hi list,
I was reading up on NSForm but the documentation is a bit
lacking...(either that or the post christmas period has me in a haze...)
I was wondering two things:
- Is it possible to have multiple items per row (row 1: text field
spanning 2, row 2: 2 text fields) ?
- Is it possible to ha
On 29 Dec 2008, at 14:46, Aki Inoue wrote:
The standard operation here is to always match characters at the
grapheme cluster boundaries.
Since SARA U is a non-spacing mark, we don't allow partial matching.
Trying to cause partial matching, even for Thai/Indic/Hebrew/Arabic
scripts that so
On 29 Dec 2008, at 9:31 pm, Marcelo Cicconet wrote:
Hi.How do I use a slider to set a parameter value?
What have you tried?
What do *you* mean by 'parameter value'?
Hooking up a slider to another object - usually a controller - you can
use target/action and bindings, to name the most com
Hi.How do I use a slider to set a parameter value?
Thanks.
Marcelo C.
___
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)lists.apple.c
On 29 Dec 2008, at 8:26 pm, Steve Cronin wrote:
Folks;
I've got two targets built from the same project: Big and Little
Big has many resources, source files, as well as several frameworks
that are copied and then deployed to a 'Frameworks' directory in the
app file's 'Contents'.
Little h
Folks;
I've got two targets built from the same project: Big and Little
Big has many resources, source files, as well as several frameworks
that are copied and then deployed to a 'Frameworks' directory in the
app file's 'Contents'.
Little has many fewer of the resources and sources and only
Kyle;
Thanks for that pointer! Based on the documentation you cited I've
now got the reading of NSUserDefaults functioning!
In the hopes that it might be useful to someone else, I include these
'Cocoa friendly' methods.
I grant that there are some improvements which could be made, I
incl
Actually Thai vowels are not considered a diacritics and, thus, not
ignored by the flag.
Also, note that, even though it is true we sometimes take advantage of
ICU from our frameworks, it is an implementation detail and should not
be considered always true.
In this particular case, we're
The standard operation here is to always match characters at the
grapheme cluster boundaries.
Since SARA U is a non-spacing mark, we don't allow partial matching.
Trying to cause partial matching, even for Thai/Indic/Hebrew/Arabic
scripts that some of non-spacing marks are vowels, is cosider
75 matches
Mail list logo