Hi,This forum is great, but it lacks one feature - there is no way for the person to know if the reply to the thread was posted by simply looking at the forum. (S)he has to open the thread to check it.Would it be possible to implement one more column which indicates the number of messages in a thread?I'm sure people here will win from this addition.TIA!
Post
Replies
Boosts
Views
Activity
Hi, ALL,Is it possible to customize a cell in the NSOutlineView?Namely I'm looking for:1. Making the column that contains text occupy all available space inside the control. The view will be rendered without a header, so no title and no possibility of resizing.2. Set the alignment for the content [left/center/right]-justified text/image/controls inside the cell.As far as I understand, by default the column is set to fit the content of the cells underneath and will resize itself if the data added will be wider.Thank you.
Hi, All,I am developing the project on my Mac with the Xcode.The project consists of one executable binary, couple of dylibs created by me and a 3rd party libraries which is given by the way of dylib files.My question would be following: - Is there a way to incorporate all those dylibs (mine and 3rd party) into the Application Bundle, so that all I will need to do is crate a Bundle inside the Xcode and ship it when I'm done? - If there is one - could you provide a step-by-step instructions on how to do that? I am running the OSX 10.13.6 with the Xcode 9.4.1. - If there is none - what is the way to distribute the libraries with the Bundle. Again - I'd like to get an instructions on how to do that.Thank you.P.S.: Application is created with Objective-C/Cocoa/C++.
Hi, ALL,I am developing an application and I need to create NSOutlineView. I need it to look like the List Control (not a Tree Control). I need the control to not to have the column header. I also need the control to have 2 columns as follows:Second column will have a constant width (lets say 100 - this is not the actual width). It will be permanent for all rows in control.First column (the leftmost one) will have a width of (view_width - width_of_second_column).First column will contain the strings of the different width. The second column will contain the checkbox with the labelThere will be no horizontal scrollbar visible - the strings will be short enough to fit in the column.And as I said before - the control will not have a column header.Is creating such control with such layout possible?My understanding is that I can do something like this:[m_OutlineView setColumnAutoresizingStyle:NSTableViewSequentialColumnAutoresizingStyle];[column resizingMask:NSTableColumnAutoresizingMask];[m_OutlineView sizeToFit];but when I tried it - it didn't work.My guess is that this is because the control does not have a visible header for columns.Am I wrong?Or I am doing something wrong with the code?Thank you in advance.
Hi, ALL,
I have a weird problem.
When I started working on my project I had a laptop with OSX 10.8. I installed Xcode 5 and everything was good. I was able to run the program from the Xcode and everything was working fine.
However recently I bought myself a newer Apple laptop with OSX 10.13. I installed Xcode 9.4.1, cloned my repository, opened the xcodeproject, compiled it and tried to run it.
Unfortunately the program failed to start. All I see that it stops somewhere in the assembly code, even before hitting any source code I wrote.
However when I open the Terminal and do:
open my_program.app
I am able to execute it without any issues.
I am also able to run the program from both Xcode and the Terminal when I update the code on my old laptop.
My question would be - what I need to do in order to start working inside Xcode and not keep switching between IDE and the Terminal for testing?
Thank you.
Hi, ALL,
Is there a way to have maximum text length in NSTextView?
My scenario: I have NSTextView whose text will go into the DB. Since DB column is fixed size, I'd like to prevent the user to type more characters than needs to be.
Thank you.
Hi, ALL,
This thread comes from the one here - https://developer.apple.com/forums/thread/659482?login=true&page=1#631376022
The question now becomes - where Xcode expects to find dylib files?
Running the bundle from the Terminal the default place is /usr/local/lib. You can create a post-build script to copy them in the bundle and relink them as appropriate. But that doesn't help with Xcode.
I also want to know who is responsible to copy those dylibs to that place. Because during development people needs to update their dylibs.
Could someone please sched some light?
Its painful not to be able to debug from Xcode and do manual work in Terminal.
Thank you.
'
Hi, ALL,
Is there a way to create a masked edit control, for example, to enter IP address or a phone number?
Let's say I have a mask and want to create a fully functional text control to follow that mask.
I'm also curious why Apple does not provide such a useful control. But that's just rhetorical.
Thank you.
Hi, ALL,
First I want to apologize for a long post. I need to explain everything in order to get a best possible answer.
I am a developer who started working on Mac + Xcode on the OSX 10.8.
I made a project which contains a binary and couple of dylib's. On that Mac everything was working correctly. I was able to run the binaries and debug them from within Xcode.
Relatively recently I bought myself a newer Mac with the version 10.13. I installed Xcode, grab the project from the GitHub, recompiled and tried to run it.
Unfortunately it didn't run. It didn't even started. It failed somewhere in the assembly code before trying to access the very first C++ code I wrote..
I went back to the old Mac and everything is still works correctly there.
I kind of concluded that somehow during the old Xcode project transitioning to the new Xcode, it changed the placement of the dylib binaries and when I try to run it it can't load dylib's and fails to start.
WHat I also found is that I can open the Terminal, go to the build directory for the project and issue:
[code]
open my_project.app
[/code]
and it runs.
But trying to debug an application from lldb inside the Terminal is very unpleasant job comparing to doing so from the Xcode.
Is there anyway to fix that, other than re-create the project from scratch on the new machine?
Is my conclusion even correct and this is the actual reason for the failure? Or there is soething else happening that prevents me from running the program from the Xcode correctly?
Any and all help will be greatly appreciated.
Thank you.
Hi,
I have a project made in the Xcode 5 and OSX 10.8. Everything was/is working there.
Then I got a new laptop with OSX 10.13. I installed Xcode 9, grabbed the project code, successfully compiled it, but when trying to run I get an exception about the dylib not being found.
I can't run it and I can't debug it since it stop somewhere in assembly during the startup of the code.
I have couple of dylib's in the project and I made them to be copied inside the Application Bundle in order to execute the project from the Terminal and debug it with lldb.
But I really like to do that from inside the Xcode.
Could someone please help me understand where do I put those dylib's in order to being able to debug from Xcode.
Thank you.
P.S.: Unfortunately Apple dropped the live notification for the posting on the thread, so if you reply - could you please keep the thread open and keep refreshing it from time to time in order to see my reply to your comment. I'm sorry for the Apple forum inconvenience.
Also - I'm sorry for choosing a (possibly) wrong tag. There is no available tag to mark my question with. If anyone know a place where I can ask this question and get a solution - I would be really glad.
Thank you.
Hi, ALL,
Is there an API in Cocoa Objective-C that will allow restore file(s) from Trash? And possibly get the list of files inside the Trash...
Thank you.
Hi, ALL,
I have a big project created in the old Mac with 10.8 and latest Xcode.
I can build and run the project as well as Debug it.
About a year ago, I bought a newer Mac with 10.13 and I put Xcode 9 on it. I cloned my project and while I can build it, I can't run/debug it, because for some reason newer Xcode is searching for dylibs that I am also developing as part of the project, but they are not there.
I'm able to debug/run the project from the Terminal without any issues, but I much prefer to work under the beauty of an IDE.
Couild someone please help me find out where the new Xcode expects to find the dylib files in order to start the execution?
TIA!
Hi, ALL,
This is continuation of the post at https://developer.apple.com/forums/thread/691010?login=true.
Apparently Claude31 didn't see my reply and was not notified about it.
Basically my question is - I created a project on Mac 10.8 with its latest Xcode, and then transferred it to the Mac with 10.13 with Xcode 9.
After the transfer I can't debug/run the project from Xcode 9, but I'm able to do so from the Terminal. lldb works, and just doing "open <my_prog.app" works as well.
I can supply any and all additional info.
The directory structure is exactly the same - I have a one binary and couple of dylib sub-projects. When I hit "Run" or try to debug from Xcode, it stops somewhere in the dylib loading assembly code.
Can someone please help solve it? It just not convenient to jump back and force from Terminal to Xcode and back.
Hi, ALL,
The Xcode project is a folder which contains multiple files/folders.
One of those is myproj.xcodeproj/xcuserdata/igorkorot.xcuserdatad/xcschemes/myproj.xcscheme
Does this file (and any other for that matter) should be under the source control?
It looks like the one referenced is constantly changing with every file being opened, so I guess it should be excluded.
What about anything else in the myproj.xcodeproj?
Thank you.
Hi, ALL,
My understanding is that NSFontPanel is like a font dialog, meaning you have something like this:
(pseudo-code in C++):
[code]
FontDialog dlg();
int result = dlg.ShowModal();
if( result == ID_OK )
{
dlg.GetSelectedFont();
}
[/code]
My question is - is there a way to embed the font panel inside the Window? Or maybe there is a control exist that let me (user) select a font inside something like a notebook.
My issue is - I need to let the user configure some stuff with the different settings and I have 3 different fonts to let user select.
The way I see it is to present a notebook which lets the user go thru the tabs and select all different properties, then click OK.
Or there is a different way to do that in Objective-C/Cocoa?
Any suggestions?
Thank you.