not. For example, it does not occur when I use 100 and 100, but
it does occur when I use 47 and 47.
Am I doing something wrong or is this a bug?
If I am doing something wrong, how can I do it right?
If it is a bug, how can I work around it?
Thanks in advance.
Best regards,
Jacob
Hey everyone,
To start off, Im sorry if this is the wrong mailing for cocoa touch and iPhone
MapKit related questions but I didn't know where else to go and you guys
haven't let me down in the past.
Onto my question. I have an iPhone app that has pins dispersed across an area.
When I click on
Hey all,
After some searching through the API, which apparently I am not good at, I
figured asking was easier. Does anyone know of a notification that gets posted
when another screen is added/detected. I figured it would be in NSWorkspace but
I didn't see anything. Thanks.
-Jake
the dock
moves from one screen to another (on Snow Leopard at least).
Solution: wait a second or so, then ask again.
This notification is also sent when the screen arrangement or
dock is reconfigured. I find this useful.
Paul Sanders.
- Original Message -
From: Jacob
No:
NSNotificationCenter *nc = [[NSWorkspace sharedWorkspace] notificationCenter];
And Paul, it does exist because the other notification I have set up get
recognized works and I cped the code.
Thanks for all the help guys.
-Jake
On Dec 29, 2009, at 2:05 PM, Dave Keck wrote:
Does nc ==
Dave, victory is yours. What is the difference between that center and my
center?
-Jake Schwartz
On Dec 29, 2009, at 2:05 PM, Dave Keck wrote:
Does nc == [NSNotificationCenter defaultCenter]?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Hello all,
So I have a code segment that turns an NSString that is a file path on
my computer into an NSURL, archives the NSURL into NSData, and then
puts that into a NSMutableDictionary to be saved in the
standardUserDefaults. I can archive and unarchive the NSData with no
problem, but
Alright I'll have to do it after I get out of class. I didn't post it
right away in case this was a common mistake, simple use of a wrong
method. Thanks
-Jake
On Oct 1, 2009, at 3:38 PM, I. Savant idiotsavant2...@gmail.com
wrote:
On Oct 1, 2009, at 3:32 PM, Jacob Schwartz wrote:
So I
]: unrecognized selector sent to instance 0x10013a7b0
Thank you again.
-Jake
On Oct 1, 2009, at 3:51 PM, I. Savant wrote:
On Oct 1, 2009, at 3:49 PM, Jacob Schwartz wrote:
I didn't post it right away in case this was a common mistake
That's the problem. If you think about it, how can we know
for all the help
-Jake
On Oct 1, 2009, at 6:14 PM, Jens Alfke wrote:
On Oct 1, 2009, at 2:19 PM, Jacob Schwartz wrote:
NSMutableDictionary *defaultValues = [NSMutableDictionary
dictionary];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@/
Users/jacobschwartz/Pictures
Hello again,
After making headway on my first cocoa app, I have run into an issue.
I have created a NSStatusItem in my class called Application.m. When I
run, the icon appears in my menubar but then disappears and becomes
ineligable to click. I read something somewehere about thr garbage
Yeah, I threw in a release statement after and it didn't do anything
different. When I read your reply, I thought what Bill said, that
garbage collection was different from release/retain statements.
-Jake Schwartz
On Sep 25, 2009, at 7:33 PM, Bill Bumgarner wrote:
On Sep 25, 2009, at
Hey everyone,
I'm new to this mailing list and also new to objective-c/cocoa
programming. I've gone through a book I picked up and I wanted to try
to make a simple, run in the background application. To get to the
point, I was looking through the documentation was looking for some
class
Yeah, monitor without menu bar will work great, thank you and thanks
to Graham,
-Jake
On Sep 21, 2009, at 11:55 AM, Scott Ribe wrote:
Well I don't think there's a way to directly ask for the external
monitor,
but look at NSScreen first.
Remember, on Mac it is easy to move the menu bar to
];
--
Jacob Rhoden http://jacobrhoden.com
___
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.com
Help
and posts saying there is no documentation!
Does anyone know where I might find information on how to detect the
accessability information under the mouse cursor?
(I continue to search the apple documentation in the mean time)
Thanks,
Jacob
FROM : Mr. George Warner
DATE : Sat Jun 13 18:56:29
that is useful on Microsoft Windows for
learning chinese:
http://www.mdbg.net/chindict/chindict.php?page=chinese_dictionary_windows
Best regards,
Jacob
--
Jacob Rhoden http://jacobrhoden.com
___
Cocoa
];
return theMenu;
}
- (NSMenu *)menuForEvent:(NSEvent *)theEvent {
return [self defaultMenu];
}
@end
Any help much appreciated!
Thanks,
Jacob
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
Test[68041:20b] DATE: Monday 26 January 2009
3:47:33 pm + to 5432224
Im completely stuck on this one! Are are there any other easy ways to
parse dates? Any help appreciated.
Thanks,
Jacob
Jacob Rhoden http://jacobrhoden.com
On 4/3/09 10:15 PM, Jacob Rhoden wrote:
Anyone experience this weird behaviour with date parsing? Given the
following code, it produces a different log output when running in the
simulator or on the iPhone!!!
NSString* test = @Monday 26 January 2009 3:47:33 pm +;
NSDateFormatter
regards,
Jacob
--
Jacob Rhoden http://jacobrhoden.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
/ is a really good reference point (its a bit
more terse, and uses language that beginners dont always understand).
(I sent this earlier but it seems to have gotten lost)
Best regards,
Jacob
On 4/3/09 4:40 PM, Biagio wrote:
Hello. My first post. I'm learning to program using Xcode 3.1.2
' Cocoa
Programming For Mac OS X third edition book might help.
Jacob
___
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.com
)awakeFromNib {
[outline setAction:@selector(loadMemberList:)];
}
-(IBAction)loadMemberList:(id)sender {
if(ldap.connected) {
NSLog(@Load members);
NSLog(@ site %@ ,[[outline selectedCell] name]);
}
}
Thanks,
Jacob
--
Jacob Rhoden
On 14/2/09 3:39 PM, Graham Cox wrote:
On 14 Feb 2009, at 12:22 pm, Jacob Rhoden wrote:
I am trying to do an action when an item in an NSOutlineView is
clicked. How do I work out which item was actually clicked on? Ive
tried all sorts of things and nothing seems to work. (Google or
Cocoa
, see a \n or a \r and we know we
have reached the end of a entry in the log.
Thanks,
Jacob
--
Jacob Rhoden http://jacobrhoden.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
, Alexander Spohr wrote:
NSInputStream?
Am 02.02.2009 um 14:42 schrieb Jacob Rhoden:
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
I know there are helper functions like
stringWithContentsOfFile:encoding:error
not been of much extra help here.
Thanks!
Jacob
Jacob Rhoden http://jacobrhoden.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
Depending on what sort of data you has, you could try allocating all of
your memory on startup, organised into related zones. That way you are
not constantly allocating/deallocating anything. Just overwriting
values. This can provide an unbelievable speed inprovement, and low
memory
Hi,
Anyone here ever done any Network kernel extensions? I am trying to
start by doing something simple as monitoring network traffic, but the
apple documentation isn't getting me very far?
Anyone know any useful websites or tutorials in this area?
Best regards,
Jacob
I have read the memory management documentation over and over but still
cannot work out the problem with this code, can anyone see it? I have
spent hours on this!
+(NSMutableArray*)getStrings {
NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
[dict setValue: @ forKey:
Im still learning cocoa, so I have a question about if this is a good
idea or a crazy noob mistake. Given the following code can I alter it so
that postreader auto releases itself?
-(IBAction) fetchThreads:(id) sender {
[progress startAnimation:nil];
PostReader* reader = [[PostReader
,
Jacob
___
http://jacobrhoden.com/
___
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.com
need to apply a mathematical algorithm using
information from each object to determine which one is greater than the
other.
Thanks!
Jacob
http://jacobrhoden.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
/km? How do I display it on screen in a
platform independent way? I cant find any examples in the developer
centre thingy.
Thanks
-jacob
---
http://jacobrhoden.com/
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
CLLocation* venueLocation = [[CLLocation alloc] initWithLatitude:
venue.latitude longitude:venue.longditude];
CLLocationDistance distance = [venueLocation
getDistanceFrom:currentLocation];
Is distance in metres/miles/km? How do I display it on screen in a
platform independent way?
On
I am not sure how one would go about working this, Im writing my first
test os/x applications and I am thinking this is probably not right.
Am I doing the retain in the correct place? I tried reading the
documentation on NSTextField but it didnt give me a clue about if I
needed to retain.
it doesnt make sense to store it in the Documents folder.
Best regards,
Jacob
___
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
Hi all,
I'd like to have an app/daemon/something detect when the computer
becomes active after a period of inactivity, much like iChat does when
it says Welcome back! Would you like to change your status from
Does anyone have any insight as to the best way to do that?
Thanks in
On Oct 5, 2008, at 09:47, Joseph Ayers wrote:
I'm trying to extract the audio samples from an audio buffer
returned from the QuickTime Audio extraction API into a
NSMutableArray of NSNumbers.
snip
The code I am using is:
AudioBufferList* abl;
NSMutableArray * ipbuf;
I want to display a modal sheet, but my code isn't currently at the
point where I can split it up. Is there a way to run a modal sheet
synchronously, so the rest of the code after it starts isn't called
until it ends? Or do I have no choice but to restructure this?
to a sheet, I suppose I'll go for it.
On Aug 15, 2008, at 3:52 AM, Graham Cox [EMAIL PROTECTED] wrote:
On 15 Aug 2008, at 3:16 pm, Jacob Bandes-Storch wrote:
I want to display a modal sheet, but my code isn't currently at the
point where I can split it up. Is there a way to run a modal
I want to implement a custom URL scheme (such that myscheme:whatever
will open my app and somehow pass the URL as a parameter). I've been
looking around for information on how to do that, and I'm getting
mixed messages.
The Info.plist documentation is very clear, and I've got the keys all
It doesn't seem to make sense to use the script suite stuff to receive
the URL event.. shouldn't it be used for scripting only? Or am I
mistaken?
On Aug 9, 2008, at 3:03 PM, Uli Kusterer wrote:
I see some implementations use -[NSAppleEventManager
. A quick search on CocoaBuilder for NSTextView
flipped turns up this suggestion to flip the superview:
http://www.cocoabuilder.com/archive/message/cocoa/2004/6/20/110164
But I haven't read it closely.
--Andy
On Jul 28, 2008, at 11:09 AM, Jacob Bandes-Storch wrote:
On Jul 28, 2008, at 7:48
I've got several large-size CSV files (a total of about 1.25 million
lines, and an average of maybe 10 or so columns) that I want to parse
into a 2D array. I found some parsing code that uses NSScanner, and it
works fine with small files, but it's very resource-intensive and slow
with
On Jul 27, 2008, at 10:49 PM, Andy Lee wrote:
On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote:
I'm trying to create a Mail-style scroll view, with a view for
information (like the view for message headers) above a text view
for the content. I created two NSViews in Interface Builder
On Jul 28, 2008, at 7:48 AM, Andy Lee [EMAIL PROTECTED] wrote:
On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote:
I'm trying to create a Mail-style scroll view, with a view for
information (like the view for message headers) above a text view
for the content. I created two NSViews
For a bit of background, I've got a window, and I'll be swapping its
content view's subview between some other views. One (and more in the
future) of the other views has a subview with wants layer set so it
can use some CALayer stuff for fading and such. Now, when I switch
between views
:
On 27 Jul 2008, at 07:36, Jacob Bandes-Storch wrote:
[snip]
For resizing, the logical method is -[NSWindow
setFrame:display:animate:]. This all works fine... until a
descendant subview has a layer. Then I get a pause, and the window
resizes without animating. If I remove the layer from
.
Another thing when I maximize and then resize the window a tiny bit
the objects all fall into their correct place..?
Jacob Kolding
[EMAIL PROTECTED]
On Jul 27, 2008, at 10:11 AM, Nathan Kinsinger wrote:
On Jul 26, 2008, at 9:02 AM, Jacob Ole Juul Kolding wrote:
Hello List
I've implemented
Hello List
I'm been reading the documentation quit a bit but haven't found the
answer.
My problem is that I don't really understand how containers work in
Cocoa,
I know NSView, but how do I add an object to it programmatically, say
a NSImage?
Any pointer greatly appreciated!
Jacob
I'm trying to create a Mail-style scroll view, with a view for
information (like the view for message headers) above a text view for
the content. I created two NSViews in Interface Builder, changed the
class of the bottom one to NSTextView, selected both, and clicked
Layout Embed Objects
stringEditor/string
/dict
/array
in Info.plist
Thanks!
Jacob Kolding
[EMAIL PROTECTED]
On Jul 26, 2008, at 3:42 AM, Ken Thomases wrote:
On Jul 25, 2008, at 6:51 PM, Jacob Ole Juul Kolding wrote:
I been searching for quite a while and reading the source code
side of the window?
Second, I have a NSTableView with a single column in my window.
The column doesn't automatically resize to fit the width of the table?
Can anyone tell me how to solve these issues?
Jacob Kolding
[EMAIL PROTECTED]
___
Cocoa-dev
It's more than one pixel.
First time i noticed it was with a string of about 140 chars which gut
truncated about 10 chars.
Jacob Kolding
[EMAIL PROTECTED]
On Jul 25, 2008, at 11:19 AM, Manfred Schwind wrote:
he problem is that on very large strings sizeWithAttributes comes
up short
IIRC from my debugging sessions sizeWithAttributes already does that?
Jacob Kolding
[EMAIL PROTECTED]
On Jul 25, 2008, at 1:47 AM, Aki Inoue wrote:
Try using -boundingRectWithSize:options:attributes instead with
NSStringDrawingUsesDeviceMetics.
Aki
On 2008/07/24, at 14:23, Jacob Ole Juul
I been searching for quite a while and reading the source code for
DockScript by still no luck.
Can anyone tell me how to make an Cocoa app launch when a file is drag
'n droped on it's icon?
Any pointer greatly appreciated!
Jacob Kolding
[EMAIL PROTECTED
or if there is a simpler way to
achieve my goal?
Any help appreciated!
Jacob Kolding
[EMAIL PROTECTED]
___
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
I'm making an NSStatusItem with a custom view. In drawRect:, it draws
things based on the value of the highlighted instance variable. When
mouseDown: is called, it pops up a menu using the status item's
popUpStatusItemMenu: method. Using the mouseUp: event does not work,
because it is not
I'm working on a project (with another developer) that will target
OSes older than 10.5, and I'd like to use the Leopard-only NSWindow
method -setCollectionBehavior:. As far as I know, the best way to do
this is to check for the method using -respondsToSelector:. I need to
use the enum
X 10.4.
(under Deployment)
You'll want to set it for all your configurations: (Debug, Release, etc)
On Sat, Jun 21, 2008 at 12:51 PM, Jacob Bandes-Storch
[EMAIL PROTECTED] wrote:
I'm working on a project (with another developer) that will target OSes
older than 10.5, and I'd like to use
I'm creating an application that will have an arbitrary number of
basically identical windows (document-like) which each have tabs (or
something of the sort) in them that represent the actual documents,
per se. Would it be best to start out with a Document-Based
Application or just a
I'm adding a HUD panel to my application. Looking around, I don't see
a way to get the proper style of controls easily. The Human Interface
Guidelines say that HUD controls should be white with gray accents
and use white or gray text. And yet I don't see a way to get these
controls (gray
, so everyone's not
rolling slightly different HUD panels, we should have at least /some/
standard HUD controls.
Please, please file an enhancement request.
--
m-s
On 12 Apr, 2008, at 22:01, Jacob Bandes-Storch wrote:
I'm adding a HUD panel to my application. Looking around, I
Hi all,
In a separate thread I call:
[self performSelectorOnMainThread: @selector(broadcastMessage:)
withObject: nil waitUntilDone: NO];
Now, is there a way for the main thread to inspect the queue of
pending messages, their targets and arguments?
(I would like my unit test to verify that
to do what I'm trying to do?
Thank you,
Jacob Lukas
On Apr 6, 2008, at 22:52, Jacob Lukas wrote:
I have a table of Core Data objects and a set of inspector views.
Depending on the Class(es) of the selection in the table view, the
set of inspector views changes.
I managed the inspector
view controller's
representedObject each time the selection changes. This works
beautifully.
If anyone wants the source for my proxy class, I'd be happy to provide
it (free for all use).
Thank you,
Jacob Lukas
On Apr 6, 2008, at 22:52, Jacob Lukas wrote:
I have a table of Core Data
unsuccessful. If someone could point me in the
right direction, that would be a great help. Thanks!
Regards,
Michael
What about creating this view in a separate nib, and loading it each
time you wish to insert it somewhere? Perhaps using +[NSBundle
loadNibNamed:owner:]
-Jacob
On a similar-ish note, I'm having trouble using libxml. I'm using a
slightly modified version of the appropriate sample code. I need to
make sure that the library is in my project. Since I couldn't find the
library in a convenient place (where are you supposed to get those
anyway?), I just
So are we or are we not getting a specialized (password-protected,
probably) discussion area for the iPhone SDK?
On Mar 10, 2008, at 6:30 PM, [EMAIL PROTECTED] wrote:
That sounds surprisingly plausible.
I imagine a big speech bubble above the Apple campus that says, Well,
I'm glad we got
.
Hope this helps.
-Jacob
___
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.com
Help/Unsubscribe/Update your
72 matches
Mail list logo