Re: Customizing the Notarization Workflow fails

2020-05-04 Thread St John, David R via Cocoa-dev
igning is OFF, then Xcode doesn't code sign the screen saver at all. That should not happen. Are you sure you did the second step and changed "Mac Developer" to "Developer ID Application” on your keychain in the Code Signing Identity? > > Could some kind s

Re: NSToolbar in Catalina

2020-03-23 Thread St John, David R via Cocoa-dev
I had a similar problem with .icns files showing weird graphics but on Mojave and earlier they were fine. I resolved the issue by using Icon Composer (on macOS 10.10) to extract the '.icns' file(s) to iconsets and then importing them into an Asset Library. The NSImage creation changed to use i

Re: Getting rid of "cannot check for malicious software"

2020-03-05 Thread St John, David R via Cocoa-dev
Read up on notarization, Catalina requires signed and notarized code. https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution Dave From: Cocoa-dev on behalf of Gabriel Zachmann via Cocoa-dev Sent: Thursday, March 5, 2020 9:

Fullscreen window problems

2019-10-24 Thread Ray, Jeffrey R. {Jeff} (AFRC-630) via Cocoa-dev
I have a multi-platform OpenGL app (most code is c++, a tiny bit is Obj-C++). It switches between windowed and full screen mode by having an allocated-once window, and an allocated-and-destroyed full screen that comes and goes as needed. This worked correctly under Xcode 4. Due to local polic

Re: Customizing NSPrintPanel by removing features, not adding

2017-10-17 Thread St John, David R
Hi Flavio, Presenting your custom print dialog (Adobe/Quark do this today) is the only way to accomplish all of the goals stated below. The standard print dialog isn’t designed to be customized in the way you want. Printing has never had much in the way of documentation, reading the header fi

Re: How to know if an NSFont can draw an NSString?

2016-12-09 Thread Douglas R. Davidson
At the AppKit level, this sort of thing is handled as part of attribute fixing on NSAttributedString, which is covered in the documentation in the “Attributed String Programming Guide”, under the heading of “Fixing Inconsistencies”. Douglas Davidson > On Dec 9, 2016, at 4:51 PM, Ken Thomases w

Re: length of file from NSFileHandle?

2016-08-26 Thread R. Matthew Emerson
> On Aug 26, 2016, at 11:32 PM, R. Matthew Emerson > wrote: > > >> On Aug 26, 2016, at 11:19 PM, Graham Cox wrote: >> >> Hi all, >> >> Apparently a simple task, but no obvious API for it: getting the length >> (size) of a file I ha

Re: length of file from NSFileHandle?

2016-08-26 Thread R. Matthew Emerson
> On Aug 26, 2016, at 11:19 PM, Graham Cox wrote: > > Hi all, > > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? > > I need to know because I have a requirement t

Re: C Sharp?

2015-07-16 Thread Glenn R. Martin
gt; # Ensure you have write permissions to /usr/local > > mkdir $PREFIX > sudo chown -R `whoami` $PREFIX > > PATH=$PREFIX/bin:$PATH > > # Download and build dependencies > > mkdir ~/Build > > cd ~/Build > curl -O ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz

Issues with hiding NSTableColumns with autolayout

2015-07-02 Thread Jensen, Stephen C. (AFRC-R)
I’m having a frustrating issue with an OSX app I am trying to write. Here is the issue: I have a single NSTableView with a contextual menu that allows the user to show or hide columns. Easy enough… lots of sample code out there to make that happen. The working line is this: // toggle the c

Crash Dispatch queue: com.apple.CFURLCACHE_work_queue

2014-06-16 Thread parth r
Hi all, I am seeing crashes in my daemon when I use dispatch_async() in a for(;;) loop. Crashed Thread: 8 Dispatch queue: com.apple.CFURLCACHE_work_queue Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: EXC_I386_GPFLT *Background* My daemon processes url's and in one of the function

Re: libcrypto linking problem in Leopard

2014-01-03 Thread St John, David R
> >On Jan 3, 2014, at 2:37 AM, Jean-Daniel Dupas >wrote: > >> The simplest advice is don't use libcrypto. >> >> If you just need simple functionality, you may have a look at the >>CommonCrypto API which is partially available on 10.5 ( I think Digest >>and Cryptors where available at this time).

NSUserDefault setPersistentDomain:forName: crash issue

2013-12-22 Thread parth r
Hi all, I am getting a crash as below when i am trying to set the dictionary for persistent domain. Attempt to set a non-property-list object as an NSUserDefaults/CFPreferences value abort() calledThread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x98cef95

Static TableView Leaks...

2012-04-06 Thread R
Using Xcode 4.3.1 for iOS5 with ARC Create a new project, single view, static table view. Don't add anything to the table view just plain as the default. Go to Product-Profile-Leaks-Profile INTERACT WITH THE TABLEVIEW - USE YOUR MOUSE TO PUSH THE TABLEVIEW UP OR DOWN It leaks. I was testin

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread R
y in the bundle? Go take a look at what you built > and make sure it's in there . > > On Mar 11, 2012, at 12:00 AM, R wrote: > > > > > > > > > > > I run the app in Xcode 4.2 just fine. > > > I move the exact same app over to 4.3, change

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread R
g wrote: > Have you tried clean builds and removing the app from the simulator entirely > then rerunning? I've had cases in the past where the new version of the app > wasn't uploaded until I removed it first. > > On 10 Mar, 2012, at 9:31, R wrote: > > > > &

Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-09 Thread R
I switched to Lion, XCode 4.3.1, iOS 5.1. I run my properly functioning app on the 5.1 iPhone simulator and the changes I make to the storyboard don't show up in the run. I'm totally perplexed and frustrated. I literally disconnected a segue and removed buttons and they still appear in the test

Twitter Account accountStore Permissions Dialog / Alert ...

2012-03-08 Thread R
I notice that when I call: [[self accountStore] requestAccessToAccountsWithType:[self accountType] withCompletionHandler:^(BOOL granted, NSError *error) { etc }]; when the dialog is presents and asks for allow or notAllow a

Re: Efficiency Question...

2012-03-06 Thread R
Thanks to all! Ron On Mar 6, 9:24 am, Kyle Sluder wrote: > On Mar 5, 2012, at 11:21 PM, Graham Cox wrote: > > > > > Is the goal to go from red to blue from left to right? > > > Why not add a single layer with red on the left, alpha = 1, and blue on the > > right, alpha = 1? I don't see why yo

Efficiency Question...

2012-03-05 Thread R
I want to blend two colors as a background. I'm adding a layer using CAGradient layer, starting on the left with blue alpha=1. and ending on the right with blue alpha=0. I then add another layer using red on the left with alpha=0. and ending on the right with alpha=1. I wonder if it is best to d

Re: NSURL and NSRegularExpression

2012-03-04 Thread R
4. mars 2012 skrev R følgende: > > > Take a look at the Twitter iPhone app.  Enter a URL and watch how it > > deals with character counts. > > I don't have an iPhone, I don't use Twitter, and we are not a paid > heldesk company. If you want help, you have to speci

Re: NSURL and NSRegularExpression

2012-03-04 Thread R
, 8:11 am, Per Bull Holmen wrote: > Den 04:27 4. mars 2012 skrev R følgende: > > > All good, valid and useful points. > > > However, I would at least like to maintain the same functionality of > > the Twitter App for iPhone. > > > The app does does a pretty goo

Re: NSURL and NSRegularExpression

2012-03-03 Thread R
All good, valid and useful points. However, I would at least like to maintain the same functionality of the Twitter App for iPhone. The app does does a pretty good job of detecting and reviewing the URL to determine if it can be assumed to be 20 characters. On Mar 3, 7:16 pm, Conrad Shultz wrot

Re: NSURL and NSRegularExpression

2012-03-03 Thread R
all this. Use NSDataDetector instead. > > (Sent from my iPhone.) > > -- > Conrad Shultz > > On Mar 3, 2012, at 16:15, R wrote: > > > > > > > > > > > I'm building a twitter app for the iphone and want to detect valid > > internet url's and

NSURL and NSRegularExpression

2012-03-03 Thread R
I'm building a twitter app for the iphone and want to detect valid internet url's and set their character count to <= 20. I'm using NSRegularExpression to build an array of all NSRanges in the text field that start with "http". I then use NSScanner to scan until it finds whitespace or end of line

Persistence.... iOS

2012-02-25 Thread R
ere a good way to just write "object for key" to a file? R ___ 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.

Re: I added an exception breakpoint to my app...

2012-02-24 Thread R
tion was raised or caught.  The > breakpoint has not yet been hit.  The debugger is just preparing things. > > Regards, > Ken > > On Feb 24, 2012, at 12:55 AM, R wrote: > > > > > > > > > > > Note that the exception was "resolved"... noth

Re: I added an exception breakpoint to my app...

2012-02-24 Thread R
Note that the exception was "resolved"... nothing to continue or log as far as I can tell On Feb 22, 11:17 pm, Kyle Sluder wrote: > On Wed, Feb 22, 2012 at 7:53 AM, R wrote: > > and now see: > > > Catchpoint 2 (throw)Pending breakpoint 1 - "objc_exception_thr

Re: I added an exception breakpoint to my app...

2012-02-24 Thread R
I created a single view application in Xcode 4, no additions, just the boilerplate template. The same exception was noted. Maybe an Xcode bug? thanks --R On Feb 22, 11:17 pm, Kyle Sluder wrote: > On Wed, Feb 22, 2012 at 7:53 AM, R wrote: > > and now see: > > > Catchpoin

I added an exception breakpoint to my app...

2012-02-22 Thread R
and now see: Catchpoint 2 (throw)Pending breakpoint 1 - "objc_exception_throw" resolved No further details. The app appears to be fine with no errors or warnings. Is this a problem? (SnowLeopard Xcode 4) ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Paging UITableView

2012-02-19 Thread R
nicely with swipe to delete, but iOS generally supports nested scroll > > views (and a table view is just a special scroll view). > > > Luke > > > On Feb 18, 2012, at 8:58 PM, "R" wrote: > > >> I understand that one is not suppose to embed a UITable

Paging UITableView

2012-02-18 Thread R
I understand that one is not suppose to embed a UITableView in a UIScrollView. I would like the ability to "Page" (horizontal scroll) multiple UITableViews. Is there a way to do this without using UIScrollView? R ___ Cocoa-dev mailing list

Re: Sandbox, 10.6, Core Duo, XCode 4.... where is the entitlement page?

2012-02-07 Thread R
To clarify, I'm developing with XCode 4 on 10.6 and want my app to be available for Lion users. Do I have to be running Lion to configure sandbox entitlements? If so, I have to buy a new machine (using a core duo)? On Feb 6, 10:54 pm, R wrote: > Ok folks, > > I must be doing so

Sandbox, 10.6, Core Duo, XCode 4.... where is the entitlement page?

2012-02-06 Thread R
Ok folks, I must be doing something really dumb... but for the life of me, I can't find the entitlement screen to configure my app. I've built apps on a Core Duo Intel machine with a 10.6 target and have converted over to XCode 4. I've read and watched the WWDC 2011 presentations, etc... Everyt

Re: Block Confusion...

2012-01-31 Thread R
parse. I chose this approach rather than delegation. Thoughts? On Jan 31, 11:25 am, David Duncan wrote: > On Jan 31, 2012, at 9:05 AM, R wrote: > > > never mind. the class was getting dealloc.  Still getting use to ARC > > and new ivar techniques. > > As a point of desi

Re: Block Confusion...

2012-01-31 Thread R
never mind. the class was getting dealloc. Still getting use to ARC and new ivar techniques. thanks! On Jan 31, 9:16 am, R wrote: > My confusion is that the array in class A is used later in the code, > it is just nil inside the block that is running on another thread. > > On

Re: Block Confusion...

2012-01-31 Thread R
My confusion is that the array in class A is used later in the code, it is just nil inside the block that is running on another thread. On Jan 31, 8:07 am, Fritz Anderson wrote: > On 30 Jan 2012, at 8:56 PM, R wrote: > > > One class creates a STRONG pointer to a NSMutableArr

Block Confusion...

2012-01-31 Thread R
I thought I understood block until today Here is my situation: One class creates a STRONG pointer to a NSMutableArray. It then passes that pointer to another class, which has a WEAK reference. that class is listed below. When I fork a new thread for the simpleBlock, I lose the pointer. I t

Re: Key Value Observing of NSMutableArray inside an object

2012-01-28 Thread R
More appropriate: - (void)addDataObject:(DataObject *)theDataObject { NSMutableArray *dataObjectArrayKVC=[self mutableArrayValueForKey:@"dataObjectArray"]; [dataObjectArrayKVC addObject:theDataObject]; } On Jan 28, 8:19 pm, R wrote: > Mikael, > > I think all you n

Re: Key Value Observing of NSMutableArray inside an object

2012-01-28 Thread R
Mikael, I think all you need is: - (void)addDataObject:(DataObject *)theDataObject { dataObjectArrayKVC=[self mutableArrayValueForKey:@"dataObjectArray"]; [dataObjectArrayKVC addObject:theDataObject]; } dataObjectArrayKVC is a proxy for dataObjectArray. Objects added/ removed to/from da

Re: Blocks and Methods...

2012-01-28 Thread R
To all, Thanks for taking the time to post advice. I think I now understand much better! --Ron On Jan 28, 12:50 pm, R wrote: > That is precisely what is giving me the confusion.  If retained the > received block in a NSMutableArray, the block should stick around (via > a str

Re: Blocks and Methods...

2012-01-28 Thread R
x27;m using ARC. On Jan 28, 9:51 am, Ken Thomases wrote: > On Jan 28, 2012, at 10:40 AM, R wrote: > > > I originally chose to hold the block in an array, but that failed. > > I'm still confused over that... > > By itself, an array only retains the block.  A block must b

Re: Blocks and Methods...

2012-01-28 Thread R
I originally chose to hold the block in an array, but that failed. I'm still confused over that... On Jan 28, 7:02 am, Mike Abdullah wrote: > On 28 Jan 2012, at 05:32, R wrote: > > > I'm writing code in for iOS 5 > > > Ok, in my async com class, I'm

Blocks and Methods...

2012-01-27 Thread R
I'm writing code in for iOS 5 Ok, in my async com class, I'm receiving a block in one method and want to execute it in the another method. I've concluded that I need to place the block in a property. The only way that has worked is via copy. Is this the conventional way to save a block? Th

Re: Maintaining Image for a UIButton

2012-01-19 Thread R
e button's imageView wrapper. On Jan 19, 9:09 am, Matt Neuburg wrote: > On Mon, 09 Jan 2012 17:12:17 -0800 (PST), R said: > > > This is easy in OSX and bindings.  But how do I maintain the aspect > > ratio of an UIImage place in a UIButton... via [myButton setImage...] &g

Maintaining Image for a UIButton

2012-01-09 Thread R
This is easy in OSX and bindings. But how do I maintain the aspect ratio of an UIImage place in a UIButton... via [myButton setImage...] or [myButton setBackgroundImage...]. In IB, there is a setting for Aspect Ratio in the View settings but it seems to make zero difference. _

A button, an arrayController and a tableView....

2011-10-28 Thread R
I've got a column of buttons in a tableView. I don't allow multiple row selections. A click of the button fires a method which says. id obj; obj=[[anArrayController selectedObjects] objectAtIndex:0]; NSLog(@"the object: %@",obj); If I don't pre-select the row, it takes two clicks of the but

Re: tableView blue selection highlight...

2011-09-20 Thread R
Thanks! On Sep 20, 10:23 pm, Indragie Karunaratne wrote: > It's called a focus ring. You can set "Focus Ring" to "None" in Interface > Builder or configure it programatically: > > [view setFocusRingType:NSFocusRingTypeNone]; > > On 2011-09-20, at 10:1

tableView blue selection highlight...

2011-09-20 Thread R
Looking inside Address Book, when you select a name from the name column, the box (tableView) does not highlight in blue. Is there a way to duplicate this behavior in NSTableview. removing the blue highlight trim around the table? ___ Cocoa-dev mail

Re: NSArrayController and NSTableView

2011-09-20 Thread R
I sounded confused because I was I think I've sorted it out. Thanks On Sep 19, 6:19 pm, Keary Suska wrote: > On Sep 19, 2011, at 6:00 PM, R wrote: > > > I find that in order for my NSTableView to update when bound to an > > NSArrayController, I have to add objec

NSArrayController and NSTableView

2011-09-19 Thread R
to an arraycontroller in a different class. I would prefer to keep my arraycontroller in the same class as my array, but have need to put a tableview on views associated with another class. I can't find an elegant way to accomplish this seemingly simple nee

Re: Submitting Mac App to the App Store

2011-09-12 Thread R
much thanks, I'll give Nick's work a try. On Sep 10, 2:34 pm, Indragie Karunaratne wrote: > https://github.com/nickpaulson/NPReceiptVerification > > Should simplify this procedure quite a bit. > > On 2011-09-10, at 2:28 PM, R wrote: > > > > > > >

Submitting Mac App to the App Store

2011-09-10 Thread R
Wow, what a configuration mess for the new programmer. Is there anyone that has submitted a Mac App to the App Store willing to explain the procedure.. including the Validating Mac App Store Receipts process. I'm about to give up and call Apple. http://developer.apple.com/library/mac/#releasenot

UpdateSystemActivity(OverallAct) to prevent sleep in Lion...

2011-08-29 Thread R
I'm using UpdateSystemActivity(OverallAct) successfully to prevent sleep in Snow Leopard. Can anyone confirm that this works with Lion? thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-08-05 Thread R R Hornback
The desire is to have a bordered, movable, resizable window with a "hollow" interior--hollow meaning that the user can both see through the content area (transparent) and any mouse/keyboard events are sent to whatever window/application is below. This was easily accomplished prior to OS X 10.7

Re: NSTextView won't deallocate

2011-07-18 Thread R
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TextUILayer/Tasks/CreateTextViewProg.html%23//apple_ref/doc/uid/2930 On Jul 18, 3:30 pm, Peter wrote: > Yes - so the more appropriate question is why it was retained 4 times. > I don't see Cocoa doing it. > It's the pro

NSPopupbutton binding setter getter....

2011-07-07 Thread R
I'm trying to understand when NSPopupbutton calls setter and getters in bindings. I have an array, an array controller, a tableview, a labelview and a NSPopupbutton. The arraycontroller generates objects (via add/remove) and loads them into the tableview via a binding. Let's say we have a one co

Re: tableview, button with view and bindings

2011-07-01 Thread R
Jul 1, 11:07 am, Quincey Morris wrote: > On Jul 1, 2011, at 07:33, R wrote: > > > throwing exceptions when the binding controller key is > > "arrangeObjects".  Note that all other data is using arrangedObjects > > fine.  But, placing an image on the button with

Re: tableview, button with view and bindings

2011-07-01 Thread R
urse the wrong image will display when changing rows. On Jul 1, 12:44 am, Quincey Morris wrote: > On Jun 30, 2011, at 23:13, R wrote: > > > Can anyone give me some guidance on adding a button w/ image to a > > tableview using bindings.  I've had good luck adding buttons to a

Re: tableview, button with view and bindings

2011-07-01 Thread R
Thanks. I'm currently displaying an image with success. I want to use a button and an image instead. I did what you said and am covered up with errors. Will dig deeper. Much thanks On Jul 1, 12:44 am, Quincey Morris wrote: > On Jun 30, 2011, at 23:13, R wrote: > > > Can an

Re: tableview, button with view and bindings

2011-06-30 Thread R
Clarification: a button with an image in a tableview. On Jul 1, 12:13 am, R wrote: > Can anyone give me some guidance on adding a button w/ image to a > tableview using bindings.  I've had good luck adding buttons to a > tableview by dropping in a button cell.  But addin

tableview, button with view and bindings

2011-06-30 Thread R
Can anyone give me some guidance on adding a button w/ image to a tableview using bindings. I've had good luck adding buttons to a tableview by dropping in a button cell. But adding the image is giving me some problems. The image will be retrieved from the object represented on the row of the ta

Re: NSURLConnection

2011-06-26 Thread R
Thanks to all on the learning curve On Jun 26, 11:12 pm, Tito Ciuro wrote: > Hello, > > If you have access to the Developer Forums, check the very first entry in > Core OS named "Five Reasons Why Synchronous Networking Is Bad", by Apple's > Quinn "The Eskimo!": > > https://devforums.apple.c

NSURLConnection

2011-06-26 Thread R
Any opinions on which approach is better. NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response

Custom NSCell and Bindings

2011-06-24 Thread Carter R. Harrison
It's a pretty typical situation. I've got my model objects stored in an NSSet. An NSArrayController that is bound to the NSSet. And then an NSTableView with one NSTableColumn bound to the arrangedObjects.name property of the NSArrayController. It works great. Now I've introduced a custom NS

Re: NSManagedObjected isInserted

2011-04-10 Thread Carter R. Harrison
On Apr 10, 2011, at 1:29 PM, Quincey Morris wrote: > On Apr 10, 2011, at 06:52, Carter R. Harrison wrote: > >> Can anybody ever think of a scenario where [NSManagedObject isInserted] >> equals NO for an object that is initially fetched from the context? And no >>

NSManagedObjected isInserted

2011-04-10 Thread Carter R. Harrison
Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from the context? And no the object has not been deleted from the context prior to calling isInserted. ___ Cocoa-dev mailing list

Re: Two Applications Sharing Same Core Data Database

2011-04-08 Thread Carter R. Harrison
On Apr 7, 2011, at 7:04 PM, Carter R. Harrison wrote: > > On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote: > >> >> On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: >> >>> I really appreciate all of your help. I gave your suggestion a shot and >

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Carter R. Harrison
On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote: > > On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: > >> I really appreciate all of your help. I gave your suggestion a shot and >> I've run into problems. Here's what happens. >> >> 1

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Carter R. Harrison
On Mar 30, 2011, at 4:09 PM, Nick Zitzmann wrote: > > On Mar 30, 2011, at 2:05 PM, Carter R. Harrison wrote: > >>>> 2. What is the best way to implement it? >>> >>> Put your CoreData code into a framework shared by your applications. And >&g

Dynamically Loading Code and Core Data Non-Standard Persistent Attributes

2011-04-05 Thread Carter R. Harrison
My Core Data application has a plugin architecture. Plugins reside within their own bundles and of course are loaded dynamically at runtime. I intend to encode instances of each plugin bundle's principal class just as Apple describes it in the section of the Core Data Programming Guide called

Re: Two Applications Sharing Same Core Data Database

2011-03-30 Thread Carter R. Harrison
On Mar 30, 2011, at 4:03 PM, Nick Zitzmann wrote: > > On Mar 30, 2011, at 1:45 PM, Carter R. Harrison wrote: > >> I'm working on a Mac Application that will have a helper application that is >> always running in the background (even if the main application is

Two Applications Sharing Same Core Data Database

2011-03-30 Thread Carter R. Harrison
I'm working on a Mac Application that will have a helper application that is always running in the background (even if the main application is not currently running). Currently the main application uses Core Data to manage persistent objects. I'd like to setup the helper application to be able

Re: Drag & Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
rking! Thanks! On Mar 14, 2011, at 3:33 PM, Quincey Morris wrote: > On Mar 14, 2011, at 12:20, Carter R. Harrison wrote: > >> I'm having trouble getting drag and drop to work with an NSOutlineView. >> What I've done is below. The problem is that >> "

Re: Drag & Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
2011, at 3:25 PM, Corbin Dunn wrote: > Your custom cell needs to properly implement: > > - (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:(NSRect)cellFrame > ofView:(NSView *)controlView NS_AVAILABLE_MAC(10_5); > > See the header for details or the AnimatedTableView demo. >

Drag & Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
I'm having trouble getting drag and drop to work with an NSOutlineView. What I've done is below. The problem is that "tableView:writeRowsWithIndexes:toPasteboard" never gets called. I found a few people with the same issue and it seems that the cause of the problem is that I am using a custo

Re: File name issue with German umlauts

2010-12-17 Thread Adam R. Maxwell
On Dec 17, 2010, at 12:08 , Lee Ann Rucker wrote: > We do this to check whether two URLs really refer to the same file (you can > also hit issues when using NSString path manipulation to build paths and then > turn them into URLs): FWIW, we had this problem also. IIRC we were creating NSURLs

Re: Running JavaScript in iOS WebView.

2010-11-17 Thread Glenn R. Martin
block. Another limitation i have noticed is that if the end point is secure (ie HTTPS), scripts dont seem to execute. Glenn R. Martin___ Cocoa-dev mailing list (Cocoa-dev@li

Handling Connection Timeouts with NSStream

2010-09-10 Thread Carter R. Harrison
Hey Folks, I'm working on a app that establishes a network connection using NSStream. I found though that the code does not behave very well when it is trying to connect to an unreachable IP address or an IP address that just isn't accepting connections on the port I have specified. The code

Re: Trying to capture XML data and convert to a String...

2010-08-19 Thread R
Thanks Sherm… On Aug 19, 2010, at 1:38 AM, Sherm Pendley wrote: > On Wed, Aug 18, 2010 at 3:11 PM, R wrote: >> I'm new and in the process of learning Objective-C and Cocoa. >> >> I want to take some raw XML data, isolate, and convert to a string. I seem >>

Trying to capture XML data and convert to a String...

2010-08-19 Thread R
eping things simple for now. Here is an excerpt of my code: The problem is at the end of the code below…. the string findAlerts is empty. The NSXMLElement specificAlert prints correctly. Thanks for your thoughts and patience…. R Note: Previous initialization: NSXMLDocument *gameStat

Main Thread Crashing in Multithreaded App

2010-08-06 Thread Carter R. Harrison
My Cocoa application's main thread is crashing with EXC_BAD_ACCESS when it becomes multithreaded. The crash always occurs in the main thread when the call stack is: 0 objc_msgSend 1 __CFArrayReleaseValues 2 _CFRelease 3 _CFAutoReleasePoolPop 4 -[NSAutoReleasePool d

reformat drive to HFS via API

2010-05-25 Thread r c
I would like to be able to reformat a flash drive from control application, but it appears that there is no public API that allows this kind access. Am I missing something in the documentation? Or do I do something like call out to diskutil to make it happen? Rich Collyer

Re: Notifications on main thread

2010-05-20 Thread Adam R. Maxwell
On May 19, 2010, at 4:02 AM, Jonny Taylor wrote: > I've noticed a slight issue (with both NSInvocation and NSOpQ) when a menu is > pulled down and posting styles NSPostASAP or NSPostWhenIdle are used. While > the menu is visible, the notifications are posted ok (on the main thread), > but obje

Re: EPS image in NSScrollView

2010-05-20 Thread Adam R. Maxwell
On May 20, 2010, at 1:43 PM, jyoun...@kc.rr.com wrote: > One other quick question. What I'm really trying to achieve is something > similar to how the pdfkit works. I like how the image/text enlarges within > the scrollview when the window is resized. The code is pretty simple as well: > >

Re: Image from WebView is sometimes blank

2010-05-14 Thread Adam R. Maxwell
On May 11, 2010, at 2:33 PM, Duncan Oliver wrote: > I have a WebView that I use to capture a thumbnail of a loaded webpage > using cacheDisplayInRect:. The WebView object is created > programmatically and not attached to a window. About half the time, > the image it grabs is blank. I can't seem t

Re: Finder file label from cocoa?

2010-04-28 Thread Adam R. Maxwell
On Apr 27, 2010, at 5:14 PM, Rainer Standke wrote: > Hello, > > is there a way to get to the finder label of a file from Cocoa? I'd like to > be able to get & set them. In addition to Uli's solution, I have a class that specifically deals with Finder labels, and works at least back to 10.4:

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Adam R. Maxwell
On Apr 19, 2010, at 8:56 AM, Marco Masser wrote: > I'm trying to implement a logging facility for an app that should behave > quite the same as OS X's Console.app in terms of displaying the log, i.e. an > NSTableView with varying row heights. I got it working so far, but there are > major draw

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread Adam R. Maxwell
On Apr 8, 2010, at 5:02 AM, vincent habchi wrote: > I've been fiddling with NSAttributedString lately, and the way to display > them through Core Text. In the docs, I've read that NSAttributedString and > CFAttributedStringRef were supposed to be "toll free" bridged; I assumed that > meant tha

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-06 Thread Adam R. Maxwell
On Apr 6, 2010, at 12:08 PM, Kazior Fukacz wrote: > Thanks for your answers! > >>> By the way, are you using garbage collection? If not, then you're leaking >>> several objects (those pointed to by 'netstat', 'pipe', and 'string'). >> >> Yeah, I suspect that the pipes (and corresponding NSFil

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-05 Thread Adam R. Maxwell
On Apr 5, 2010, at 3:02 PM, Ken Thomases wrote: > On Apr 5, 2010, at 4:05 PM, Kazior Fukacz wrote: > >> When I run it, it keeps working perfectly fine for a few minutes, then stops >> refreshing the IP and prints: >> >> IPShowX[14917] *** NSTimer discarding exception '*** -[NSCFDictionary >>

Re: Creating WebView in code

2010-04-02 Thread Adam R. Maxwell
On Apr 2, 2010, at 2:08 PM, Nick Zitzmann wrote: > > On Apr 2, 2010, at 2:19 PM, Jenny M wrote: > >> D'oh, you told me that before and I completely forgot. So I tried >> that, but the page still appears blank. I don't want the page to be >> visible so I didn't set makeKeyOrderFront. FWIW, I'm

RESOLVED: Blocked Reads

2010-03-17 Thread r c
Thank you all for your ideas. With various suggestions, I found a variation of the CDRomSample code that seems to work well. The sample does reads on the BSN Name of the device root (i.e. /dev/rdisk#). I have found that if I dig a little deeper into the IORegistry for the device (i.e. /dev/rdis

Re: Memory Problems

2010-02-05 Thread Adam R. Maxwell
On Feb 5, 2010, at 5:49 PM, Greg Robertson wrote: > I am trying to parse a large CSV (5MB) file using some code I found here: > http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data > > but I am getting what I think is an out of memory error part way through, the > error is: >

Re: Socket Blocking Question

2010-01-20 Thread Carter R. Harrison
On Jan 20, 2010, at 2:23 PM, Ken Thomases wrote: > On Jan 20, 2010, at 11:39 AM, Carter R. Harrison wrote: > >> I need some folks experienced with cocoa and socket programming to weigh in >> for me on some design problems I've been having. I'm designing an &

Re: Socket Blocking Question

2010-01-20 Thread Carter R. Harrison
thing else will work with this system. > (Mike Ash explains pretty well on this blog why trying to support those > things can lead to some unfixable trickiness, which I just wanted to avoid > altogether.) > > If you can't support 10.6, then, this won't work. But hopefully you c

Re: Bindings Problem

2010-01-20 Thread Carter R. Harrison
On Jan 18, 2010, at 4:55 PM, Ken Thomases wrote: > On Jan 18, 2010, at 11:01 AM, Jeffrey Oleander wrote: > >> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Collections/Articles/Sets.html >> >> "Set Fundamentals: Note that if mutable objects are stored in a set, either >

Socket Blocking Question

2010-01-20 Thread Carter R. Harrison
I need some folks experienced with cocoa and socket programming to weigh in for me on some design problems I've been having. I'm designing an application that acts as a client in a client-server model. The client communicates with the server over the network by issuing a request and then recei

Bindings Problem

2010-01-14 Thread Carter R. Harrison
I'm sure what I'm trying to do is not that difficult but I've been pulling my hair out for a while now on this problem. I have an application whose model could be updated without the user directly doing anything. So bindings seems like the perfect fit b/c the interface will reflect these sorts

Drawing into myView

2009-12-16 Thread R T
I have a subclass of NSView and I want to draw into it after I retrieve an Image in an NSImageView. I'm trying to set 2 instance variables in the drawRect block of code... @property(readwrite) NSRect tRect; @property (retain, readwrite) NSGraphicsContext*savedContext; ___

  1   2   3   4   5   6   7   >